Contrôles des données
Obtenir les contrôles des données de projet Google Managed
beta.organization.providers.google.projects.data_controls.retrieve(project_number, **kwargs) -> BetaGoogleManagedProjectDataControlsanthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Obtenez les clés de chiffrement et les buckets de stockage d'un projet Google Cloud pour Claude sur Google Cloud's Agent Platform, avec le statut de chaque région.
Mettre à jour les contrôles des données de projet Google Managed
beta.organization.providers.google.projects.data_controls.update(project_number, **kwargs) -> BetaGoogleManagedProjectDataControlsanthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Activez ou désactivez un contrôle, ou modifiez la clé ou le bucket défini pour une région. Les contrôles et les régions que vous omettez restent inchangés.
Models
class BetaGoogleManagedProjectBucketReference { bucket_name, project_number }A Cloud Storage bucket, named by the project that holds it and by its own name.
A Cloud Storage bucket, named by the project that holds it and by its own name.
The bucket's Cloud Storage name.
The number of the Google Cloud project that holds the bucket, in decimal.
type BetaGoogleManagedProjectCMEKControl = BetaGoogleManagedProjectCMEKDisabled | BetaGoogleManagedProjectCMEKEnabledThe customer-managed encryption key control: the key in your Google Cloud KMS that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no key of its own for the project.
The customer-managed encryption key control: the key in your Google Cloud KMS that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no key of its own for the project.
type BetaGoogleManagedProjectCMEKControlParams = BetaGoogleManagedProjectCMEKDisabledParams | BetaGoogleManagedProjectCMEKEnabledParamsThe customer-managed encryption key control. Leave it out to keep the control as it is. Send cmek, storage, or both.
The customer-managed encryption key control. Leave it out to keep the control as it is. Send cmek, storage, or both.
class BetaGoogleManagedProjectCMEKDisabledParams { type: :disabled }Turns the control off and removes every region's key.
Turns the control off and removes every region's key.
class BetaGoogleManagedProjectCMEKEnabledParams { type: :enabled, external_key_ids }Turns the control on, or changes its keys while it is on.
Turns the control on, or changes its keys while it is on.
The External Key to use in each region, keyed by region code, such as us or eu. An External Key ID (ekey_...) sets that region's key, null removes it, and a region you leave out keeps its key. While the control is on, at least one region must have a key.
class BetaGoogleManagedProjectCMEKDisabled { type: :disabled, retired_keys }The control is off and has no keys.
The control is off and has no keys.
retired_keys: Array[BetaGoogleManagedProjectRetiredKey { expires_at, external_key_id, region }]Keys that a region has retired, earliest expires_at first.
Keys that a region has retired, earliest expires_at first.
expires_at: TimeWhen this entry is removed, in RFC 3339 format.
When this entry is removed, in RFC 3339 format.
The ID of the retired External Key (ekey_...).
The code of the region that retired the key.
class BetaGoogleManagedProjectCMEKDisabledParams { type: :disabled }Turns the control off and removes every region's key.
Turns the control off and removes every region's key.
class BetaGoogleManagedProjectCMEKEnabled { type: :enabled, external_key_ids, retired_keys, status }The control is on and has a key for at least one region.
The control is on and has a key for at least one region.
class BetaGoogleManagedProjectCMEKEnabledParams { type: :enabled, external_key_ids }Turns the control on, or changes its keys while it is on.
Turns the control on, or changes its keys while it is on.
The External Key to use in each region, keyed by region code, such as us or eu. An External Key ID (ekey_...) sets that region's key, null removes it, and a region you leave out keeps its key. While the control is on, at least one region must have a key.
class BetaGoogleManagedProjectCMEKRegionActive { type: :active, effective_external_key_id, error, 2 more }The configured key passed validation, and the region applies it.
The configured key passed validation, and the region applies it.
The ID of the External Key that the region applies now (ekey_...). While a replacement key is pending or failed, this is the previous key. null when the region applies no key.
Why Google Cloud KMS refused the region's latest use of the key. null when the region has no refusal to report. A null does not mean that the key works.
last_checked_at: Time | nilWhen the region last got a successful answer from Google Cloud KMS for the key, in RFC 3339 format. null when it has none to report.
When the region last got a successful answer from Google Cloud KMS for the key, in RFC 3339 format. null when it has none to report.
validated_at: TimeWhen the status last became active, in RFC 3339 format.
When the status last became active, in RFC 3339 format.
class BetaGoogleManagedProjectCMEKRegionFailed { type: :failed, effective_external_key_id, error }The region stopped retrying validation before the configured key passed. To restart validation, send the region a key again. It can be the same key.
The region stopped retrying validation before the configured key passed. To restart validation, send the region a key again. It can be the same key.
The ID of the External Key that the region applies now (ekey_...). While a replacement key is pending or failed, this is the previous key. null when the region applies no key.
Why the region cannot use the configured key.
class BetaGoogleManagedProjectCMEKRegionNotConfigured { type: :not_configured, effective_external_key_id }No key is set for this region.
No key is set for this region.
The ID of the External Key that the region applies now (ekey_...). While a replacement key is pending or failed, this is the previous key. null when the region applies no key.
class BetaGoogleManagedProjectCMEKRegionPending { type: :pending, effective_external_key_id, error }The region is validating the configured key, or the key has passed validation and the region has not started to apply it.
The region is validating the configured key, or the key has passed validation and the region has not started to apply it.
The ID of the External Key that the region applies now (ekey_...). While a replacement key is pending or failed, this is the previous key. null when the region applies no key.
Why the latest validation attempt failed. null when no attempt has failed.
type BetaGoogleManagedProjectCMEKRegionStatus = BetaGoogleManagedProjectCMEKRegionNotConfigured | BetaGoogleManagedProjectCMEKRegionPending | BetaGoogleManagedProjectCMEKRegionActive | 2 more
class BetaGoogleManagedProjectCMEKRegionSuspended { type: :suspended, effective_external_key_id }Anthropic has withdrawn or paused its approval of customer-managed keys for this project, so the region does not apply the control.
Anthropic has withdrawn or paused its approval of customer-managed keys for this project, so the region does not apply the control.
The ID of the External Key that the region applies now (ekey_...). While a replacement key is pending or failed, this is the previous key. null when the region applies no key.
class BetaGoogleManagedProjectDataControls { type: :google_managed_project_data_controls, cmek, project_number, 2 more }A Google Cloud project's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Your organization has one of these objects for each Google Cloud project that it has proved it owns. You can read and update it, but not create or delete it. Keys and buckets are set for each region. A request's region depends on the Google endpoint it is sent to: us is the US multi-region endpoint and the regional endpoint of every location whose name starts with us-, eu is the EU multi-region endpoint and the regional endpoint of every location whose name starts with europe-, sg is the asia-southeast1 regional endpoint, and global is the global endpoint, wherever Google serves the request. Anthropic may add regions.
A Google Cloud project's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Your organization has one of these objects for each Google Cloud project that it has proved it owns. You can read and update it, but not create or delete it. Keys and buckets are set for each region. A request's region depends on the Google endpoint it is sent to: us is the US multi-region endpoint and the regional endpoint of every location whose name starts with us-, eu is the EU multi-region endpoint and the regional endpoint of every location whose name starts with europe-, sg is the asia-southeast1 regional endpoint, and global is the global endpoint, wherever Google serves the request. Anthropic may add regions.
Object type. Always google_managed_project_data_controls.
The customer-managed encryption key control: the key in your Google Cloud KMS that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no key of its own for the project.
The customer-managed encryption key control: the key in your Google Cloud KMS that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no key of its own for the project.
The number of the Google Cloud project that these controls belong to, in decimal.
The customer-owned storage control: your Cloud Storage bucket that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no bucket of its own for the project.
The customer-owned storage control: your Cloud Storage bucket that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no bucket of its own for the project.
updated_at: TimeWhen an update last changed a control, or a region's status last changed, in RFC 3339 format. A region that starts or stops reading suspended, a change to last_checked_at alone, and the removal of a retired entry do not count.
When an update last changed a control, or a region's status last changed, in RFC 3339 format. A region that starts or stops reading suspended, a change to last_checked_at alone, and the removal of a retired entry do not count.
class BetaGoogleManagedProjectEffectiveBucket { bucket_name, project_number }A Cloud Storage bucket, named by the project that holds it and by its own name.
A Cloud Storage bucket, named by the project that holds it and by its own name.
The bucket's Cloud Storage name.
The number of the Google Cloud project that holds the bucket, in decimal.
class BetaGoogleManagedProjectRetiredBucket { bucket_name, expires_at, project_number, region }A bucket that a region has retired. Until expires_at, keep the bucket and Anthropic's access to it as they were when the bucket passed verification.
A bucket that a region has retired. Until expires_at, keep the bucket and Anthropic's access to it as they were when the bucket passed verification.
The bucket's Cloud Storage name.
expires_at: TimeWhen this entry is removed, in RFC 3339 format.
When this entry is removed, in RFC 3339 format.
The number of the Google Cloud project that holds the bucket, in decimal.
The code of the region that retired the bucket.
class BetaGoogleManagedProjectRetiredKey { expires_at, external_key_id, region }A key that a region has retired. Keep the key usable until expires_at.
A key that a region has retired. Keep the key usable until expires_at.
expires_at: TimeWhen this entry is removed, in RFC 3339 format.
When this entry is removed, in RFC 3339 format.
The ID of the retired External Key (ekey_...).
The code of the region that retired the key.
class BetaGoogleManagedProjectStorageBucket { bucket_name, kms_key_name, location, 2 more }The bucket configured for a region.
The bucket configured for a region.
The bucket's Cloud Storage name.
The resource name of the Cloud KMS key that the bucket encrypts objects under by default. null until the region has confirmed the bucket, and when the bucket has no default key.
The bucket's location, as Cloud Storage reports it. null until the region has confirmed the bucket.
The ID of the project that holds the bucket. null until the region has confirmed the bucket.
The number of the Google Cloud project that holds the bucket, in decimal.
type BetaGoogleManagedProjectStorageControl = BetaGoogleManagedProjectStorageDisabled | BetaGoogleManagedProjectStorageEnabledThe customer-owned storage control: your Cloud Storage bucket that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no bucket of its own for the project.
The customer-owned storage control: your Cloud Storage bucket that is set for each region. It covers the project's requests that name no user profile, or a user profile that has no bucket of its own for the project.
type BetaGoogleManagedProjectStorageControlParams = BetaGoogleManagedProjectStorageDisabledParams | BetaGoogleManagedProjectStorageEnabledParamsThe customer-owned storage control. Leave it out to keep the control as it is. Send cmek, storage, or both.
The customer-owned storage control. Leave it out to keep the control as it is. Send cmek, storage, or both.
class BetaGoogleManagedProjectStorageDisabled { type: :disabled, retired_buckets }The control is off and has no buckets.
The control is off and has no buckets.
retired_buckets: Array[BetaGoogleManagedProjectRetiredBucket { bucket_name, expires_at, project_number, region }]Buckets that a region has retired, earliest expires_at first.
Buckets that a region has retired, earliest expires_at first.
The bucket's Cloud Storage name.
expires_at: TimeWhen this entry is removed, in RFC 3339 format.
When this entry is removed, in RFC 3339 format.
The number of the Google Cloud project that holds the bucket, in decimal.
The code of the region that retired the bucket.
class BetaGoogleManagedProjectStorageDisabledParams { type: :disabled }Turns the control off and removes every region's bucket.
Turns the control off and removes every region's bucket.
class BetaGoogleManagedProjectStorageEnabled { type: :enabled, buckets, retired_buckets, status }The control is on and has a bucket for at least one region.
The control is on and has a bucket for at least one region.
class BetaGoogleManagedProjectStorageEnabledParams { type: :enabled, buckets }Turns the control on, or changes its buckets while it is on.
Turns the control on, or changes its buckets while it is on.
buckets: optional Hash[Symbol, BetaGoogleManagedProjectBucketReference { bucket_name, project_number } | nil]The bucket to use in each region, keyed by region code, such as us or eu. An object with project_number and bucket_name sets that region's bucket, null removes it, and a region you leave out keeps its bucket. A bucket can serve only one region. While the control is on, at least one region must have a bucket.
The bucket to use in each region, keyed by region code, such as us or eu. An object with project_number and bucket_name sets that region's bucket, null removes it, and a region you leave out keeps its bucket. A bucket can serve only one region. While the control is on, at least one region must have a bucket.
The bucket's Cloud Storage name.
The number of the Google Cloud project that holds the bucket, in decimal.
class BetaGoogleManagedProjectStorageFailedCheck { check, message, role }One check that a verification attempt failed.
One check that a verification attempt failed.
class BetaGoogleManagedProjectStorageRegionActive { type: :active, effective_bucket, failed_checks, validated_at }The configured bucket passed verification, and the region applies it.
The configured bucket passed verification, and the region applies it.
class BetaGoogleManagedProjectStorageRegionFailed { type: :failed, effective_bucket, failed_checks }The region stopped retrying verification before the configured bucket passed. To restart verification, send the region a bucket again. It can be the same bucket.
The region stopped retrying verification before the configured bucket passed. To restart verification, send the region a bucket again. It can be the same bucket.
class BetaGoogleManagedProjectStorageRegionNotConfigured { type: :not_configured, effective_bucket }No bucket is set for this region.
No bucket is set for this region.
effective_bucket: BetaGoogleManagedProjectEffectiveBucket { bucket_name, project_number } | nilThe bucket that the region applies now. While a replacement bucket is pending or failed, this is the previous bucket. null when the region applies no bucket.
The bucket that the region applies now. While a replacement bucket is pending or failed, this is the previous bucket. null when the region applies no bucket.
The bucket's Cloud Storage name.
The number of the Google Cloud project that holds the bucket, in decimal.
class BetaGoogleManagedProjectStorageRegionPending { type: :pending, effective_bucket, failed_checks }The region is verifying the configured bucket.
The region is verifying the configured bucket.
type BetaGoogleManagedProjectStorageRegionStatus = BetaGoogleManagedProjectStorageRegionNotConfigured | BetaGoogleManagedProjectStorageRegionPending | BetaGoogleManagedProjectStorageRegionActive | 2 more
class BetaGoogleManagedProjectStorageRegionSuspended { type: :suspended, effective_bucket }Anthropic has withdrawn or paused its approval of customer-owned storage for this project, so the region does not apply the control.
Anthropic has withdrawn or paused its approval of customer-owned storage for this project, so the region does not apply the control.
effective_bucket: BetaGoogleManagedProjectEffectiveBucket { bucket_name, project_number } | nilThe bucket that the region applies now. While a replacement bucket is pending or failed, this is the previous bucket. null when the region applies no bucket.
The bucket that the region applies now. While a replacement bucket is pending or failed, this is the previous bucket. null when the region applies no bucket.
The bucket's Cloud Storage name.
The number of the Google Cloud project that holds the bucket, in decimal.