Controles de dados
Obter controles de dados Google Managed
client.Beta.UserProfiles.Providers.Google.DataControls.Get(ctx, userProfileID, query) (*BetaGoogleManagedDataControls, error)anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Obtém as chaves de criptografia e os buckets de armazenamento do perfil para o Claude no Google Cloud's Agent Platform, com o status de cada região.
Atualizar controles de dados Google Managed
client.Beta.UserProfiles.Providers.Google.DataControls.Update(ctx, userProfileID, params) (*BetaGoogleManagedDataControls, error)anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.Ativa ou desativa um controle, ou altera a chave ou o bucket definido para uma região. Controles e regiões que você omitir permanecem como estão.
Models
type BetaGoogleManagedBucketReference struct { BucketName; ProjectNumber }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 BetaGoogleManagedCMEKControlUnion interface{…}The customer-managed encryption key control, discriminated by type.
The customer-managed encryption key control, discriminated by type.
type BetaGoogleManagedCMEKDisabled struct { Type: "disabled"; RetiredKeys }The control is off and has no keys.
The control is off and has no keys.
RetiredKeys []BetaGoogleManagedRetiredKeyKeys that a region has retired, earliest expires_at first.
Keys that a region has retired, earliest expires_at first.
ExpiresAt 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.
type BetaGoogleManagedCMEKEnabled struct { Type: "enabled"; ExternalKeyIDs; RetiredKeys; 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.
type BetaGoogleManagedCMEKControlParamsUnion interface{…}How to set the cmek control, discriminated by type.
How to set the cmek control, discriminated by type.
type BetaGoogleManagedCMEKDisabledParams struct { Type: "disabled" }Turns the control off and removes every region's key.
Turns the control off and removes every region's key.
type BetaGoogleManagedCMEKEnabledParams struct { Type: "enabled"; ExternalKeyIDs }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.
type BetaGoogleManagedCMEKDisabled struct { Type: "disabled"; RetiredKeys }The control is off and has no keys.
The control is off and has no keys.
RetiredKeys []BetaGoogleManagedRetiredKeyKeys that a region has retired, earliest expires_at first.
Keys that a region has retired, earliest expires_at first.
ExpiresAt 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.
type BetaGoogleManagedCMEKDisabledParams struct { Type: "disabled" }Turns the control off and removes every region's key.
Turns the control off and removes every region's key.
type BetaGoogleManagedCMEKEnabled struct { Type: "enabled"; ExternalKeyIDs; RetiredKeys; 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.
type BetaGoogleManagedCMEKEnabledParams struct { Type: "enabled"; ExternalKeyIDs }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.
type BetaGoogleManagedCMEKRegionActive struct { Type: "active"; EffectiveExternalKeyID; 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.
LastCheckedAt TimeWhen 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.
ValidatedAt TimeWhen the status last became active, in RFC 3339 format.
When the status last became active, in RFC 3339 format.
type BetaGoogleManagedCMEKRegionFailed struct { Type: "failed"; EffectiveExternalKeyID; 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.
type BetaGoogleManagedCMEKRegionNotConfigured struct { Type: "not_configured"; EffectiveExternalKeyID }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.
type BetaGoogleManagedCMEKRegionPending struct { Type: "pending"; EffectiveExternalKeyID; 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 BetaGoogleManagedCMEKRegionStatusUnion interface{…}One region's status for the cmek control, discriminated by type.
One region's status for the cmek control, discriminated by type.
type BetaGoogleManagedCMEKRegionSuspended struct { Type: "suspended"; EffectiveExternalKeyID }Anthropic has withdrawn or paused its approval of customer-managed keys for this profile, so the region does not apply the control.
Anthropic has withdrawn or paused its approval of customer-managed keys for this profile, 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.
type BetaGoogleManagedDataControls struct { Type: "google_managed_data_controls"; BucketLabelValue; CMEK; /* 3 more */ }A user profile's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Every user profile has one of these objects. 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 user profile's encryption key and storage bucket settings for Claude on Google Cloud's Agent Platform. Every user profile has one of these objects. 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.
type BetaGoogleManagedRetiredBucket struct { BucketName; ExpiresAt; ProjectNumber; 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.
ExpiresAt 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.
type BetaGoogleManagedRetiredKey struct { ExpiresAt; ExternalKeyID; 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.
ExpiresAt 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.
type BetaGoogleManagedStorageBucket struct { BucketName; KMSKeyName; 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 BetaGoogleManagedStorageControlUnion interface{…}The customer-owned storage control, discriminated by type.
The customer-owned storage control, discriminated by type.
type BetaGoogleManagedStorageDisabled struct { Type: "disabled"; RetiredBuckets }The control is off and has no buckets.
The control is off and has no buckets.
RetiredBuckets []BetaGoogleManagedRetiredBucketBuckets 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.
ExpiresAt 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.
type BetaGoogleManagedStorageEnabled struct { Type: "enabled"; Buckets; RetiredBuckets; 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.
type BetaGoogleManagedStorageControlParamsUnion interface{…}How to set the storage control, discriminated by type.
How to set the storage control, discriminated by type.
type BetaGoogleManagedStorageDisabledParams struct { Type: "disabled" }Turns the control off and removes every region's bucket.
Turns the control off and removes every region's bucket.
type BetaGoogleManagedStorageEnabledParams struct { 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 map[string]BetaGoogleManagedBucketReferenceParam OptionalThe 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.
type BetaGoogleManagedStorageDisabled struct { Type: "disabled"; RetiredBuckets }The control is off and has no buckets.
The control is off and has no buckets.
RetiredBuckets []BetaGoogleManagedRetiredBucketBuckets 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.
ExpiresAt 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.
type BetaGoogleManagedStorageDisabledParams struct { Type: "disabled" }Turns the control off and removes every region's bucket.
Turns the control off and removes every region's bucket.
type BetaGoogleManagedStorageEnabled struct { Type: "enabled"; Buckets; RetiredBuckets; 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.
type BetaGoogleManagedStorageEnabledParams struct { 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 map[string]BetaGoogleManagedBucketReferenceParam OptionalThe 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.
type BetaGoogleManagedStorageFailedCheck struct { Check; Message; Role }One check that a verification attempt failed.
One check that a verification attempt failed.
type BetaGoogleManagedStorageRegionActive struct { Type: "active"; EffectiveBucket; FailedChecks; ValidatedAt }The configured bucket passed verification, and the region applies it.
The configured bucket passed verification, and the region applies it.
type BetaGoogleManagedStorageRegionFailed struct { Type: "failed"; EffectiveBucket; FailedChecks }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.
type BetaGoogleManagedStorageRegionNotConfigured struct { Type: "not_configured"; EffectiveBucket }No bucket is set for this region.
No bucket is set for this region.
EffectiveBucket BetaGoogleManagedBucketReferenceThe 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.
type BetaGoogleManagedStorageRegionPending struct { Type: "pending"; EffectiveBucket; FailedChecks }The region is verifying the configured bucket.
The region is verifying the configured bucket.
type BetaGoogleManagedStorageRegionStatusUnion interface{…}One region's status for the storage control, discriminated by type.
One region's status for the storage control, discriminated by type.
type BetaGoogleManagedStorageRegionSuspended struct { Type: "suspended"; EffectiveBucket }Anthropic has withdrawn or paused its approval of customer-owned storage for this profile, so the region does not apply the control.
Anthropic has withdrawn or paused its approval of customer-owned storage for this profile, so the region does not apply the control.
EffectiveBucket BetaGoogleManagedBucketReferenceThe 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.