feat(all): auto-regenerate discovery clients (#3155)
diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json
index 4348620..07e3cb8 100644
--- a/alloydb/v1beta/alloydb-api.json
+++ b/alloydb/v1beta/alloydb-api.json
@@ -1619,7 +1619,7 @@
}
}
},
- "revision": "20250417",
+ "revision": "20250508",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
@@ -2408,7 +2408,7 @@
"id": "ContinuousBackupInfo",
"properties": {
"earliestRestorableTime": {
- "description": "Output only. The earliest restorable time that can be restored to. Output only field.",
+ "description": "Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes \"now minus the recovery window\". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
@@ -2425,7 +2425,7 @@
"readOnly": true
},
"schedule": {
- "description": "Output only. Days of the week on which a continuous backup is taken. Output only field. Ignored if passed into the request.",
+ "description": "Output only. Days of the week on which a continuous backup is taken.",
"items": {
"enum": [
"DAY_OF_WEEK_UNSPECIFIED",
@@ -3070,6 +3070,10 @@
"description": "Metadata related to instance-level network configuration.",
"id": "InstanceNetworkConfig",
"properties": {
+ "allocatedIpRangeOverride": {
+ "description": "Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: \"google-managed-services-default\". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](http://go/rfc/1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.",
+ "type": "string"
+ },
"authorizedExternalNetworks": {
"description": "Optional. A list of external network authorized to access this instance.",
"items": {
diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go
index a118cd6..825403c 100644
--- a/alloydb/v1beta/alloydb-gen.go
+++ b/alloydb/v1beta/alloydb-gen.go
@@ -941,7 +941,15 @@
// properties of a cluster.
type ContinuousBackupInfo struct {
// EarliestRestorableTime: Output only. The earliest restorable time that can
- // be restored to. Output only field.
+ // be restored to. If continuous backups and recovery was recently enabled, the
+ // earliest restorable time is the creation time of the earliest eligible
+ // backup within this cluster's continuous backup recovery window. After a
+ // cluster has had continuous backups enabled for the duration of its recovery
+ // window, the earliest restorable time becomes "now minus the recovery
+ // window". For example, assuming a point in time recovery is attempted at
+ // 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable
+ // time would be 04/02/2025 3:23:00PM. This field is only visible if the
+ // CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
EarliestRestorableTime string `json:"earliestRestorableTime,omitempty"`
// EnabledTime: Output only. When ContinuousBackup was most recently enabled.
// Set to null if ContinuousBackup is not enabled.
@@ -950,7 +958,7 @@
// backups required for ContinuousBackup.
EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
// Schedule: Output only. Days of the week on which a continuous backup is
- // taken. Output only field. Ignored if passed into the request.
+ // taken.
//
// Possible values:
// "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
@@ -1759,6 +1767,13 @@
// InstanceNetworkConfig: Metadata related to instance-level network
// configuration.
type InstanceNetworkConfig struct {
+ // AllocatedIpRangeOverride: Optional. Name of the allocated IP range for the
+ // private IP AlloyDB instance, for example: "google-managed-services-default".
+ // If set, the instance IPs will be created from this allocated range and will
+ // override the IP range used by the parent cluster. The range name must comply
+ // with RFC 1035 (http://go/rfc/1035). Specifically, the name must be 1-63
+ // characters long and match the regular expression a-z ([-a-z0-9]*[a-z0-9])?.
+ AllocatedIpRangeOverride string `json:"allocatedIpRangeOverride,omitempty"`
// AuthorizedExternalNetworks: Optional. A list of external network authorized
// to access this instance.
AuthorizedExternalNetworks []*AuthorizedNetwork `json:"authorizedExternalNetworks,omitempty"`
@@ -1773,13 +1788,13 @@
// is specified in the form: //
// `projects/{project_number}/global/networks/{network_id}`.
Network string `json:"network,omitempty"`
- // ForceSendFields is a list of field names (e.g. "AuthorizedExternalNetworks")
+ // ForceSendFields is a list of field names (e.g. "AllocatedIpRangeOverride")
// to unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "AuthorizedExternalNetworks") to
+ // NullFields is a list of field names (e.g. "AllocatedIpRangeOverride") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json
index 2278006..aa0155b 100644
--- a/backupdr/v1/backupdr-api.json
+++ b/backupdr/v1/backupdr-api.json
@@ -319,6 +319,45 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
+ "patch": {
+ "description": "Update a BackupPlanAssociation",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}",
+ "httpMethod": "PATCH",
+ "id": "backupdr.projects.locations.backupPlanAssociations.patch",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/backupPlanAssociations/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "requestId": {
+ "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
+ "location": "query",
+ "type": "string"
+ },
+ "updateMask": {
+ "description": "Required. The list of fields to update. Field mask is used to specify the fields to be overwritten in the BackupPlanAssociation resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail. Currently backup_plan_association.backup_plan is the only supported field.",
+ "format": "google-fieldmask",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "BackupPlanAssociation"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
"triggerBackup": {
"description": "Triggers a new Backup.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}:triggerBackup",
@@ -753,6 +792,11 @@
"location": "query",
"type": "boolean"
},
+ "forceUpdateAccessRestriction": {
+ "description": "Optional. If set to true, we will force update access restriction even if some non compliant data sources are present. The default is 'false'.",
+ "location": "query",
+ "type": "boolean"
+ },
"name": {
"description": "Output only. Identifier. Name of the backup vault to create. It must have the format`\"projects/{project}/locations/{location}/backupVaults/{backupvault}\"`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.",
"location": "path",
@@ -1751,7 +1795,7 @@
}
}
},
- "revision": "20250411",
+ "revision": "20250509",
"rootUrl": "https://backupdr.googleapis.com/",
"schemas": {
"AbandonBackupRequest": {
@@ -2156,6 +2200,11 @@
"readOnly": true,
"type": "string"
},
+ "diskBackupProperties": {
+ "$ref": "DiskBackupProperties",
+ "description": "Output only. Disk specific backup properties.",
+ "readOnly": true
+ },
"enforcedRetentionEndTime": {
"description": "Optional. The backup can not be deleted before this time.",
"format": "google-datetime",
@@ -2648,6 +2697,14 @@
"readOnly": true,
"type": "string"
},
+ "supportedResourceTypes": {
+ "description": "Output only. All resource types to which backupPlan can be applied.",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true,
+ "type": "array"
+ },
"updateTime": {
"description": "Output only. When the `BackupPlan` was last updated.",
"format": "google-datetime",
@@ -2835,14 +2892,16 @@
"CREATING",
"ACTIVE",
"DELETING",
- "ERROR"
+ "ERROR",
+ "UPDATING"
],
"enumDescriptions": [
"State not set.",
"The backup vault is being created.",
"The backup vault has been created and is fully usable.",
"The backup vault is being deleted.",
- "The backup vault is experiencing an issue and might be unusable."
+ "The backup vault is experiencing an issue and might be unusable.",
+ "The backup vault is being updated."
],
"readOnly": true,
"type": "string"
@@ -3229,6 +3288,11 @@
"description": "Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.",
"id": "DataSource",
"properties": {
+ "backupBlockedByVaultAccessRestriction": {
+ "description": "Output only. This field is set to true if the backup is blocked by vault access restriction.",
+ "readOnly": true,
+ "type": "boolean"
+ },
"backupConfigInfo": {
"$ref": "BackupConfigInfo",
"description": "Output only. Details of how the resource is configured for backup.",
@@ -3363,6 +3427,10 @@
"$ref": "ComputeInstanceDataSourceProperties",
"description": "ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level."
},
+ "diskDatasourceProperties": {
+ "$ref": "DiskDataSourceProperties",
+ "description": "DiskDataSourceProperties has a subset of Disk properties that are useful at the Datasource level."
+ },
"gcpResourcename": {
"description": "Output only. Full resource pathname URL of the source Google Cloud resource.",
"readOnly": true,
@@ -3379,6 +3447,226 @@
},
"type": "object"
},
+ "DiskBackupProperties": {
+ "description": "DiskBackupProperties represents the properties of a Disk backup.",
+ "id": "DiskBackupProperties",
+ "properties": {
+ "architecture": {
+ "description": "The architecture of the source disk. Valid values are ARM64 or X86_64.",
+ "enum": [
+ "ARCHITECTURE_UNSPECIFIED",
+ "X86_64",
+ "ARM64"
+ ],
+ "enumDescriptions": [
+ "Default value. This value is unused.",
+ "Disks with architecture X86_64",
+ "Disks with architecture ARM64"
+ ],
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the source disk.",
+ "type": "string"
+ },
+ "guestOsFeature": {
+ "description": "A list of guest OS features that are applicable to this backup.",
+ "items": {
+ "$ref": "GuestOsFeature"
+ },
+ "type": "array"
+ },
+ "licenses": {
+ "description": "A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "region": {
+ "description": "Region and zone are mutually exclusive fields. The URL of the region of the source disk.",
+ "type": "string"
+ },
+ "replicaZones": {
+ "description": "The URL of the Zones where the source disk should be replicated.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "sizeGb": {
+ "description": "Size(in GB) of the source disk.",
+ "format": "int64",
+ "type": "string"
+ },
+ "sourceDisk": {
+ "description": "The source disk used to create this backup.",
+ "type": "string"
+ },
+ "type": {
+ "description": "The URL of the type of the disk.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The URL of the Zone where the source disk.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DiskDataSourceProperties": {
+ "description": "DiskDataSourceProperties represents the properties of a Disk resource that are stored in the DataSource. .",
+ "id": "DiskDataSourceProperties",
+ "properties": {
+ "description": {
+ "description": "The description of the disk.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Name of the disk backed up by the datasource.",
+ "type": "string"
+ },
+ "sizeGb": {
+ "description": "The size of the disk in GB.",
+ "format": "int64",
+ "type": "string"
+ },
+ "type": {
+ "description": "The type of the disk.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DiskRestoreProperties": {
+ "description": "DiskRestoreProperties represents the properties of a Disk restore.",
+ "id": "DiskRestoreProperties",
+ "properties": {
+ "accessMode": {
+ "description": "Optional. The access mode of the disk.",
+ "enum": [
+ "READ_WRITE_SINGLE",
+ "READ_WRITE_MANY",
+ "READ_ONLY_MANY"
+ ],
+ "enumDescriptions": [
+ "The default AccessMode, means the disk can be attached to single instance in RW mode.",
+ "The AccessMode means the disk can be attached to multiple instances in RW mode.",
+ "The AccessMode means the disk can be attached to multiple instances in RO mode."
+ ],
+ "type": "string"
+ },
+ "architecture": {
+ "description": "Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.",
+ "enum": [
+ "ARCHITECTURE_UNSPECIFIED",
+ "X86_64",
+ "ARM64"
+ ],
+ "enumDescriptions": [
+ "Default value. This value is unused.",
+ "Disks with architecture X86_64",
+ "Disks with architecture ARM64"
+ ],
+ "type": "string"
+ },
+ "description": {
+ "description": "Optional. An optional description of this resource. Provide this property when you create the resource.",
+ "type": "string"
+ },
+ "diskEncryptionKey": {
+ "$ref": "CustomerEncryptionKey",
+ "description": "Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key."
+ },
+ "enableConfidentialCompute": {
+ "description": "Optional. Indicates whether this disk is using confidential compute mode. Encryption with a Cloud KMS key is required to enable this option.",
+ "type": "boolean"
+ },
+ "guestOsFeature": {
+ "description": "Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.",
+ "items": {
+ "$ref": "GuestOsFeature"
+ },
+ "type": "array"
+ },
+ "labels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Optional. Labels to apply to this disk. These can be modified later using setLabels method. Label values can be empty.",
+ "type": "object"
+ },
+ "licenses": {
+ "description": "Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "Required. Name of the disk..",
+ "type": "string"
+ },
+ "physicalBlockSizeBytes": {
+ "description": "Optional. Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently, the supported size is 4096.",
+ "format": "int64",
+ "type": "string"
+ },
+ "provisionedIops": {
+ "description": "Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.",
+ "format": "int64",
+ "type": "string"
+ },
+ "provisionedThroughput": {
+ "description": "Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.",
+ "format": "int64",
+ "type": "string"
+ },
+ "resourceManagerTags": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Optional. Resource manager tags to be bound to the disk.",
+ "type": "object"
+ },
+ "resourcePolicy": {
+ "description": "Optional. Resource policies applied to this disk.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "sizeGb": {
+ "description": "Required. The size of the disk in GB.",
+ "format": "int64",
+ "type": "string"
+ },
+ "storagePool": {
+ "description": "Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Required. URL of the disk type resource describing which disk type to use to create the disk.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DiskTargetEnvironment": {
+ "description": "DiskTargetEnvironment represents the target environment for the disk.",
+ "id": "DiskTargetEnvironment",
+ "properties": {
+ "project": {
+ "description": "Required. Target project for the disk.",
+ "type": "string"
+ },
+ "zone": {
+ "description": "Required. Target zone for the disk.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"DisplayDevice": {
"description": "A set of Display Device options",
"id": "DisplayDevice",
@@ -4424,6 +4712,28 @@
},
"type": "object"
},
+ "RegionDiskTargetEnvironment": {
+ "description": "RegionDiskTargetEnvironment represents the target environment for the disk.",
+ "id": "RegionDiskTargetEnvironment",
+ "properties": {
+ "project": {
+ "description": "Required. Target project for the disk.",
+ "type": "string"
+ },
+ "region": {
+ "description": "Required. Target region for the disk.",
+ "type": "string"
+ },
+ "replicaZones": {
+ "description": "Required. Target URLs of the replica zones for the disk.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"RemoveDataSourceRequest": {
"description": "Message for deleting a DataSource.",
"id": "RemoveDataSourceRequest",
@@ -4512,6 +4822,18 @@
"$ref": "ComputeInstanceTargetEnvironment",
"description": "Compute Engine target environment to be used during restore."
},
+ "diskRestoreProperties": {
+ "$ref": "DiskRestoreProperties",
+ "description": "Disk properties to be overridden during restore."
+ },
+ "diskTargetEnvironment": {
+ "$ref": "DiskTargetEnvironment",
+ "description": "Disk target environment to be used during restore."
+ },
+ "regionDiskTargetEnvironment": {
+ "$ref": "RegionDiskTargetEnvironment",
+ "description": "Region disk target environment to be used during restore."
+ },
"requestId": {
"description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
"type": "string"
diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go
index 12086f6..0ce7949 100644
--- a/backupdr/v1/backupdr-gen.go
+++ b/backupdr/v1/backupdr-gen.go
@@ -699,6 +699,8 @@
// Description: Output only. The description of the Backup instance (2048
// characters or less).
Description string `json:"description,omitempty"`
+ // DiskBackupProperties: Output only. Disk specific backup properties.
+ DiskBackupProperties *DiskBackupProperties `json:"diskBackupProperties,omitempty"`
// EnforcedRetentionEndTime: Optional. The backup can not be deleted before
// this time.
EnforcedRetentionEndTime string `json:"enforcedRetentionEndTime,omitempty"`
@@ -1177,6 +1179,9 @@
// "INACTIVE" - The resource has been created but is not usable.
// "UPDATING" - The resource is being updated.
State string `json:"state,omitempty"`
+ // SupportedResourceTypes: Output only. All resource types to which backupPlan
+ // can be applied.
+ SupportedResourceTypes []string `json:"supportedResourceTypes,omitempty"`
// UpdateTime: Output only. When the `BackupPlan` was last updated.
UpdateTime string `json:"updateTime,omitempty"`
@@ -1360,6 +1365,7 @@
// "ACTIVE" - The backup vault has been created and is fully usable.
// "DELETING" - The backup vault is being deleted.
// "ERROR" - The backup vault is experiencing an issue and might be unusable.
+ // "UPDATING" - The backup vault is being updated.
State string `json:"state,omitempty"`
// TotalStoredBytes: Output only. Total size of the storage used by all backup
// resources.
@@ -1841,6 +1847,9 @@
// DataSource: Message describing a DataSource object. Datasource object used
// to represent Datasource details for both admin and basic view.
type DataSource struct {
+ // BackupBlockedByVaultAccessRestriction: Output only. This field is set to
+ // true if the backup is blocked by vault access restriction.
+ BackupBlockedByVaultAccessRestriction bool `json:"backupBlockedByVaultAccessRestriction,omitempty"`
// BackupConfigInfo: Output only. Details of how the resource is configured for
// backup.
BackupConfigInfo *BackupConfigInfo `json:"backupConfigInfo,omitempty"`
@@ -1896,16 +1905,18 @@
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
- // ForceSendFields is a list of field names (e.g. "BackupConfigInfo") to
- // unconditionally include in API requests. By default, fields with empty or
- // default values are omitted from API requests. See
+ // ForceSendFields is a list of field names (e.g.
+ // "BackupBlockedByVaultAccessRestriction") to unconditionally include in API
+ // requests. By default, fields with empty or default values are omitted from
+ // API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "BackupConfigInfo") to include in
- // API requests with the JSON null value. By default, fields with empty values
- // are omitted from API requests. See
- // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ // NullFields is a list of field names (e.g.
+ // "BackupBlockedByVaultAccessRestriction") to include in API requests with the
+ // JSON null value. By default, fields with empty values are omitted from API
+ // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
+ // more details.
NullFields []string `json:"-"`
}
@@ -1959,6 +1970,9 @@
// a subset of Compute Instance properties that are useful at the Datasource
// level.
ComputeInstanceDatasourceProperties *ComputeInstanceDataSourceProperties `json:"computeInstanceDatasourceProperties,omitempty"`
+ // DiskDatasourceProperties: DiskDataSourceProperties has a subset of Disk
+ // properties that are useful at the Datasource level.
+ DiskDatasourceProperties *DiskDataSourceProperties `json:"diskDatasourceProperties,omitempty"`
// GcpResourcename: Output only. Full resource pathname URL of the source
// Google Cloud resource.
GcpResourcename string `json:"gcpResourcename,omitempty"`
@@ -1987,6 +2001,198 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// DiskBackupProperties: DiskBackupProperties represents the properties of a
+// Disk backup.
+type DiskBackupProperties struct {
+ // Architecture: The architecture of the source disk. Valid values are ARM64 or
+ // X86_64.
+ //
+ // Possible values:
+ // "ARCHITECTURE_UNSPECIFIED" - Default value. This value is unused.
+ // "X86_64" - Disks with architecture X86_64
+ // "ARM64" - Disks with architecture ARM64
+ Architecture string `json:"architecture,omitempty"`
+ // Description: A description of the source disk.
+ Description string `json:"description,omitempty"`
+ // GuestOsFeature: A list of guest OS features that are applicable to this
+ // backup.
+ GuestOsFeature []*GuestOsFeature `json:"guestOsFeature,omitempty"`
+ // Licenses: A list of publicly available licenses that are applicable to this
+ // backup. This is applicable if the original image had licenses attached, e.g.
+ // Windows image.
+ Licenses []string `json:"licenses,omitempty"`
+ // Region: Region and zone are mutually exclusive fields. The URL of the region
+ // of the source disk.
+ Region string `json:"region,omitempty"`
+ // ReplicaZones: The URL of the Zones where the source disk should be
+ // replicated.
+ ReplicaZones []string `json:"replicaZones,omitempty"`
+ // SizeGb: Size(in GB) of the source disk.
+ SizeGb int64 `json:"sizeGb,omitempty,string"`
+ // SourceDisk: The source disk used to create this backup.
+ SourceDisk string `json:"sourceDisk,omitempty"`
+ // Type: The URL of the type of the disk.
+ Type string `json:"type,omitempty"`
+ // Zone: The URL of the Zone where the source disk.
+ Zone string `json:"zone,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Architecture") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Architecture") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DiskBackupProperties) MarshalJSON() ([]byte, error) {
+ type NoMethod DiskBackupProperties
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// DiskDataSourceProperties: DiskDataSourceProperties represents the properties
+// of a Disk resource that are stored in the DataSource. .
+type DiskDataSourceProperties struct {
+ // Description: The description of the disk.
+ Description string `json:"description,omitempty"`
+ // Name: Name of the disk backed up by the datasource.
+ Name string `json:"name,omitempty"`
+ // SizeGb: The size of the disk in GB.
+ SizeGb int64 `json:"sizeGb,omitempty,string"`
+ // Type: The type of the disk.
+ Type string `json:"type,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Description") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Description") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DiskDataSourceProperties) MarshalJSON() ([]byte, error) {
+ type NoMethod DiskDataSourceProperties
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// DiskRestoreProperties: DiskRestoreProperties represents the properties of a
+// Disk restore.
+type DiskRestoreProperties struct {
+ // AccessMode: Optional. The access mode of the disk.
+ //
+ // Possible values:
+ // "READ_WRITE_SINGLE" - The default AccessMode, means the disk can be
+ // attached to single instance in RW mode.
+ // "READ_WRITE_MANY" - The AccessMode means the disk can be attached to
+ // multiple instances in RW mode.
+ // "READ_ONLY_MANY" - The AccessMode means the disk can be attached to
+ // multiple instances in RO mode.
+ AccessMode string `json:"accessMode,omitempty"`
+ // Architecture: Optional. The architecture of the source disk. Valid values
+ // are ARM64 or X86_64.
+ //
+ // Possible values:
+ // "ARCHITECTURE_UNSPECIFIED" - Default value. This value is unused.
+ // "X86_64" - Disks with architecture X86_64
+ // "ARM64" - Disks with architecture ARM64
+ Architecture string `json:"architecture,omitempty"`
+ // Description: Optional. An optional description of this resource. Provide
+ // this property when you create the resource.
+ Description string `json:"description,omitempty"`
+ // DiskEncryptionKey: Optional. Encrypts the disk using a customer-supplied
+ // encryption key or a customer-managed encryption key.
+ DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"`
+ // EnableConfidentialCompute: Optional. Indicates whether this disk is using
+ // confidential compute mode. Encryption with a Cloud KMS key is required to
+ // enable this option.
+ EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"`
+ // GuestOsFeature: Optional. A list of features to enable in the guest
+ // operating system. This is applicable only for bootable images.
+ GuestOsFeature []*GuestOsFeature `json:"guestOsFeature,omitempty"`
+ // Labels: Optional. Labels to apply to this disk. These can be modified later
+ // using setLabels method. Label values can be empty.
+ Labels map[string]string `json:"labels,omitempty"`
+ // Licenses: Optional. A list of publicly available licenses that are
+ // applicable to this backup. This is applicable if the original image had
+ // licenses attached, e.g. Windows image
+ Licenses []string `json:"licenses,omitempty"`
+ // Name: Required. Name of the disk..
+ Name string `json:"name,omitempty"`
+ // PhysicalBlockSizeBytes: Optional. Physical block size of the persistent
+ // disk, in bytes. If not present in a request, a default value is used.
+ // Currently, the supported size is 4096.
+ PhysicalBlockSizeBytes int64 `json:"physicalBlockSizeBytes,omitempty,string"`
+ // ProvisionedIops: Optional. Indicates how many IOPS to provision for the
+ // disk. This sets the number of I/O operations per second that the disk can
+ // handle.
+ ProvisionedIops int64 `json:"provisionedIops,omitempty,string"`
+ // ProvisionedThroughput: Optional. Indicates how much throughput to provision
+ // for the disk. This sets the number of throughput MB per second that the disk
+ // can handle.
+ ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"`
+ // ResourceManagerTags: Optional. Resource manager tags to be bound to the
+ // disk.
+ ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"`
+ // ResourcePolicy: Optional. Resource policies applied to this disk.
+ ResourcePolicy []string `json:"resourcePolicy,omitempty"`
+ // SizeGb: Required. The size of the disk in GB.
+ SizeGb int64 `json:"sizeGb,omitempty,string"`
+ // StoragePool: Optional. The storage pool in which the new disk is created.
+ // You can provide this as a partial or full URL to the resource.
+ StoragePool string `json:"storagePool,omitempty"`
+ // Type: Required. URL of the disk type resource describing which disk type to
+ // use to create the disk.
+ Type string `json:"type,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "AccessMode") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "AccessMode") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DiskRestoreProperties) MarshalJSON() ([]byte, error) {
+ type NoMethod DiskRestoreProperties
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// DiskTargetEnvironment: DiskTargetEnvironment represents the target
+// environment for the disk.
+type DiskTargetEnvironment struct {
+ // Project: Required. Target project for the disk.
+ Project string `json:"project,omitempty"`
+ // Zone: Required. Target zone for the disk.
+ Zone string `json:"zone,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Project") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Project") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DiskTargetEnvironment) MarshalJSON() ([]byte, error) {
+ type NoMethod DiskTargetEnvironment
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// DisplayDevice: A set of Display Device options
type DisplayDevice struct {
// EnableDisplay: Optional. Enables display for the Compute Engine VM
@@ -3364,6 +3570,33 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// RegionDiskTargetEnvironment: RegionDiskTargetEnvironment represents the
+// target environment for the disk.
+type RegionDiskTargetEnvironment struct {
+ // Project: Required. Target project for the disk.
+ Project string `json:"project,omitempty"`
+ // Region: Required. Target region for the disk.
+ Region string `json:"region,omitempty"`
+ // ReplicaZones: Required. Target URLs of the replica zones for the disk.
+ ReplicaZones []string `json:"replicaZones,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Project") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Project") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s RegionDiskTargetEnvironment) MarshalJSON() ([]byte, error) {
+ type NoMethod RegionDiskTargetEnvironment
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// RemoveDataSourceRequest: Message for deleting a DataSource.
type RemoveDataSourceRequest struct {
// RequestId: Optional. An optional request ID to identify requests. Specify a
@@ -3460,6 +3693,13 @@
// ComputeInstanceTargetEnvironment: Compute Engine target environment to be
// used during restore.
ComputeInstanceTargetEnvironment *ComputeInstanceTargetEnvironment `json:"computeInstanceTargetEnvironment,omitempty"`
+ // DiskRestoreProperties: Disk properties to be overridden during restore.
+ DiskRestoreProperties *DiskRestoreProperties `json:"diskRestoreProperties,omitempty"`
+ // DiskTargetEnvironment: Disk target environment to be used during restore.
+ DiskTargetEnvironment *DiskTargetEnvironment `json:"diskTargetEnvironment,omitempty"`
+ // RegionDiskTargetEnvironment: Region disk target environment to be used
+ // during restore.
+ RegionDiskTargetEnvironment *RegionDiskTargetEnvironment `json:"regionDiskTargetEnvironment,omitempty"`
// RequestId: Optional. An optional request ID to identify requests. Specify a
// unique request ID so that if you must retry your request, the server will
// know to ignore the request if it has already been completed. The server will
@@ -4922,6 +5162,140 @@
}
}
+type ProjectsLocationsBackupPlanAssociationsPatchCall struct {
+ s *Service
+ name string
+ backupplanassociation *BackupPlanAssociation
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Patch: Update a BackupPlanAssociation
+//
+// - name: Output only. Identifier. The resource name of BackupPlanAssociation
+// in below format Format :
+// projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanA
+// ssociationId}.
+func (r *ProjectsLocationsBackupPlanAssociationsService) Patch(name string, backupplanassociation *BackupPlanAssociation) *ProjectsLocationsBackupPlanAssociationsPatchCall {
+ c := &ProjectsLocationsBackupPlanAssociationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.backupplanassociation = backupplanassociation
+ return c
+}
+
+// RequestId sets the optional parameter "requestId": An optional request ID to
+// identify requests. Specify a unique request ID so that if you must retry
+// your request, the server will know to ignore the request if it has already
+// been completed. The server will guarantee that for at least 60 minutes since
+// the first request. For example, consider a situation where you make an
+// initial request and t he request times out. If you make the request again
+// with the same request ID, the server can check if original operation with
+// the same request ID was received, and if so, will ignore the second request.
+// This prevents clients from accidentally creating duplicate commitments. The
+// request ID must be a valid UUID with the exception that zero UUID is not
+// supported (00000000-0000-0000-0000-000000000000).
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) RequestId(requestId string) *ProjectsLocationsBackupPlanAssociationsPatchCall {
+ c.urlParams_.Set("requestId", requestId)
+ return c
+}
+
+// UpdateMask sets the optional parameter "updateMask": Required. The list of
+// fields to update. Field mask is used to specify the fields to be overwritten
+// in the BackupPlanAssociation resource by the update. The fields specified in
+// the update_mask are relative to the resource, not the full request. A field
+// will be overwritten if it is in the mask. If the user does not provide a
+// mask then the request will fail. Currently
+// backup_plan_association.backup_plan is the only supported field.
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBackupPlanAssociationsPatchCall {
+ c.urlParams_.Set("updateMask", updateMask)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupPlanAssociationsPatchCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) Context(ctx context.Context) *ProjectsLocationsBackupPlanAssociationsPatchCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.backupplanassociation)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PATCH", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "backupdr.projects.locations.backupPlanAssociations.patch", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "backupdr.projects.locations.backupPlanAssociations.patch" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsBackupPlanAssociationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "backupdr.projects.locations.backupPlanAssociations.patch", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
type ProjectsLocationsBackupPlanAssociationsTriggerBackupCall struct {
s *Service
name string
@@ -6346,6 +6720,15 @@
return c
}
+// ForceUpdateAccessRestriction sets the optional parameter
+// "forceUpdateAccessRestriction": If set to true, we will force update access
+// restriction even if some non compliant data sources are present. The default
+// is 'false'.
+func (c *ProjectsLocationsBackupVaultsPatchCall) ForceUpdateAccessRestriction(forceUpdateAccessRestriction bool) *ProjectsLocationsBackupVaultsPatchCall {
+ c.urlParams_.Set("forceUpdateAccessRestriction", fmt.Sprint(forceUpdateAccessRestriction))
+ return c
+}
+
// RequestId sets the optional parameter "requestId": An optional request ID to
// identify requests. Specify a unique request ID so that if you must retry
// your request, the server will know to ignore the request if it has already
diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json
index 4b830c8..39a2d41 100644
--- a/cloudbuild/v1/cloudbuild-api.json
+++ b/cloudbuild/v1/cloudbuild-api.json
@@ -2573,7 +2573,7 @@
}
}
},
- "revision": "20250418",
+ "revision": "20250514",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ApprovalConfig": {
@@ -3591,6 +3591,10 @@
"description": "Human-readable description of this trigger.",
"type": "string"
},
+ "developerConnectEventConfig": {
+ "$ref": "DeveloperConnectEventConfig",
+ "description": "Optional. The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received."
+ },
"disabled": {
"description": "If true, the trigger will never automatically execute a build.",
"type": "boolean"
@@ -4025,6 +4029,44 @@
},
"type": "object"
},
+ "DeveloperConnectEventConfig": {
+ "description": "The configuration of a trigger that creates a build whenever an event from the DeveloperConnect API is received.",
+ "id": "DeveloperConnectEventConfig",
+ "properties": {
+ "gitRepositoryLink": {
+ "description": "Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.",
+ "type": "string"
+ },
+ "gitRepositoryLinkType": {
+ "description": "Output only. The type of DeveloperConnect GitRepositoryLink.",
+ "enum": [
+ "GIT_REPOSITORY_LINK_TYPE_UNSPECIFIED",
+ "GITHUB",
+ "GITHUB_ENTERPRISE",
+ "GITLAB",
+ "GITLAB_ENTERPRISE"
+ ],
+ "enumDescriptions": [
+ "If unspecified, GitRepositoryLinkType defaults to GITHUB.",
+ "The SCM repo is GITHUB.",
+ "The SCM repo is GITHUB_ENTERPRISE.",
+ "The SCM repo is GITLAB.",
+ "The SCM repo is GITLAB_ENTERPRISE."
+ ],
+ "readOnly": true,
+ "type": "string"
+ },
+ "pullRequest": {
+ "$ref": "PullRequestFilter",
+ "description": "Filter to match changes in pull requests."
+ },
+ "push": {
+ "$ref": "PushFilter",
+ "description": "Filter to match changes in refs like branches and tags."
+ }
+ },
+ "type": "object"
+ },
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
@@ -4817,7 +4859,7 @@
"type": "string"
},
"path": {
- "description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
+ "description": "Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
"type": "string"
},
"repository": {
@@ -5864,7 +5906,7 @@
},
"privatePoolV1Config": {
"$ref": "PrivatePoolV1Config",
- "description": "Legacy Private Pool configuration."
+ "description": "Private Pool configuration."
},
"state": {
"description": "Output only. `WorkerPool` state.",
diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go
index 6df52da..15a2bf5 100644
--- a/cloudbuild/v1/cloudbuild-gen.go
+++ b/cloudbuild/v1/cloudbuild-gen.go
@@ -1456,6 +1456,9 @@
CreateTime string `json:"createTime,omitempty"`
// Description: Human-readable description of this trigger.
Description string `json:"description,omitempty"`
+ // DeveloperConnectEventConfig: Optional. The configuration of a trigger that
+ // creates a build whenever an event from the DeveloperConnect API is received.
+ DeveloperConnectEventConfig *DeveloperConnectEventConfig `json:"developerConnectEventConfig,omitempty"`
// Disabled: If true, the trigger will never automatically execute a build.
Disabled bool `json:"disabled,omitempty"`
// EventType: EventType allows the user to explicitly set the type of event to
@@ -2037,6 +2040,45 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// DeveloperConnectEventConfig: The configuration of a trigger that creates a
+// build whenever an event from the DeveloperConnect API is received.
+type DeveloperConnectEventConfig struct {
+ // GitRepositoryLink: Required. The Developer Connect Git repository link,
+ // formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+ GitRepositoryLink string `json:"gitRepositoryLink,omitempty"`
+ // GitRepositoryLinkType: Output only. The type of DeveloperConnect
+ // GitRepositoryLink.
+ //
+ // Possible values:
+ // "GIT_REPOSITORY_LINK_TYPE_UNSPECIFIED" - If unspecified,
+ // GitRepositoryLinkType defaults to GITHUB.
+ // "GITHUB" - The SCM repo is GITHUB.
+ // "GITHUB_ENTERPRISE" - The SCM repo is GITHUB_ENTERPRISE.
+ // "GITLAB" - The SCM repo is GITLAB.
+ // "GITLAB_ENTERPRISE" - The SCM repo is GITLAB_ENTERPRISE.
+ GitRepositoryLinkType string `json:"gitRepositoryLinkType,omitempty"`
+ // PullRequest: Filter to match changes in pull requests.
+ PullRequest *PullRequestFilter `json:"pullRequest,omitempty"`
+ // Push: Filter to match changes in refs like branches and tags.
+ Push *PushFilter `json:"push,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "GitRepositoryLink") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "GitRepositoryLink") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DeveloperConnectEventConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod DeveloperConnectEventConfig
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated empty messages in your APIs. A typical example is to use it as
// the request or the response type of an API method. For instance: service Foo
@@ -3098,8 +3140,8 @@
// GroupId: Maven `groupId` value used when uploading the artifact to Artifact
// Registry.
GroupId string `json:"groupId,omitempty"`
- // Path: Path to an artifact in the build's workspace to be uploaded to
- // Artifact Registry. This can be either an absolute path, e.g.
+ // Path: Optional. Path to an artifact in the build's workspace to be uploaded
+ // to Artifact Registry. This can be either an absolute path, e.g.
// /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from
// /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
Path string `json:"path,omitempty"`
@@ -4515,7 +4557,7 @@
// `CreateWorkerPool` request and the value of `{location}` is determined by
// the endpoint accessed.
Name string `json:"name,omitempty"`
- // PrivatePoolV1Config: Legacy Private Pool configuration.
+ // PrivatePoolV1Config: Private Pool configuration.
PrivatePoolV1Config *PrivatePoolV1Config `json:"privatePoolV1Config,omitempty"`
// State: Output only. `WorkerPool` state.
//
diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json
index b7d4258..69da2ca 100644
--- a/datastream/v1/datastream-api.json
+++ b/datastream/v1/datastream-api.json
@@ -1261,7 +1261,7 @@
}
}
},
- "revision": "20250505",
+ "revision": "20250511",
"rootUrl": "https://datastream.googleapis.com/",
"schemas": {
"AppendOnly": {
@@ -2253,6 +2253,11 @@
"includeObjects": {
"$ref": "MongodbCluster",
"description": "MongoDB collections to include in the stream."
+ },
+ "maxConcurrentBackfillTasks": {
+ "description": "Optional. Maximum number of concurrent backfill tasks. The number should be non-negative and less than or equal to 50. If not set (or set to 0), the system's default value is used",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
@@ -3681,7 +3686,12 @@
"StandardConnectionFormat": {
"description": "Standard connection format.",
"id": "StandardConnectionFormat",
- "properties": {},
+ "properties": {
+ "directConnection": {
+ "description": "Optional. Specifies whether the client connects directly to the host[:port] in the connection URI.",
+ "type": "boolean"
+ }
+ },
"type": "object"
},
"StartBackfillJobRequest": {
diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go
index 871be0c..d96fceb 100644
--- a/datastream/v1/datastream-gen.go
+++ b/datastream/v1/datastream-gen.go
@@ -1381,6 +1381,10 @@
ExcludeObjects *MongodbCluster `json:"excludeObjects,omitempty"`
// IncludeObjects: MongoDB collections to include in the stream.
IncludeObjects *MongodbCluster `json:"includeObjects,omitempty"`
+ // MaxConcurrentBackfillTasks: Optional. Maximum number of concurrent backfill
+ // tasks. The number should be non-negative and less than or equal to 50. If
+ // not set (or set to 0), the system's default value is used
+ MaxConcurrentBackfillTasks int64 `json:"maxConcurrentBackfillTasks,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExcludeObjects") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
@@ -3118,6 +3122,25 @@
// StandardConnectionFormat: Standard connection format.
type StandardConnectionFormat struct {
+ // DirectConnection: Optional. Specifies whether the client connects directly
+ // to the host[:port] in the connection URI.
+ DirectConnection bool `json:"directConnection,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "DirectConnection") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "DirectConnection") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s StandardConnectionFormat) MarshalJSON() ([]byte, error) {
+ type NoMethod StandardConnectionFormat
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// StartBackfillJobRequest: Request for manually initiating a backfill job for
diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json
index a40f3e0..a828fa2 100644
--- a/discoveryengine/v1/discoveryengine-api.json
+++ b/discoveryengine/v1/discoveryengine-api.json
@@ -635,7 +635,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -3127,7 +3127,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$",
"required": true,
@@ -4279,7 +4279,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -7052,7 +7052,7 @@
}
}
},
- "revision": "20250509",
+ "revision": "20250514",
"rootUrl": "https://discoveryengine.googleapis.com/",
"schemas": {
"GoogleApiDistribution": {
@@ -10221,7 +10221,7 @@
"type": "string"
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"servingConfigDataStore": {
@@ -10302,7 +10302,7 @@
"id": "GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -10836,7 +10836,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -10851,7 +10851,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -10871,7 +10871,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
@@ -16736,7 +16736,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -16821,7 +16821,7 @@
"id": "GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -17242,7 +17242,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -17257,7 +17257,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -17277,7 +17277,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"recommendationMetadata": {
@@ -21028,7 +21028,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -21113,7 +21113,7 @@
"id": "GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -21447,7 +21447,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -21462,7 +21462,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -21482,7 +21482,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go
index 3a41c1c..50bfd0a 100644
--- a/discoveryengine/v1/discoveryengine-gen.go
+++ b/discoveryengine/v1/discoveryengine-gen.go
@@ -5406,7 +5406,8 @@
// DataStore will be protected by the KMS key, as indicated in the cmek_config
// field.
KmsKeyName string `json:"kmsKeyName,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -5499,8 +5500,8 @@
// GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -6287,7 +6288,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -6300,9 +6301,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -6315,9 +6317,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -14413,7 +14415,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1alphaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -14506,8 +14509,8 @@
// GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -15132,7 +15135,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -15145,9 +15148,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -15160,9 +15164,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -20386,7 +20390,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1betaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -20479,8 +20484,8 @@
// GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -20972,7 +20977,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -20985,9 +20990,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -21000,9 +21006,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -26639,7 +26645,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
@@ -35965,9 +35972,9 @@
// Patch: Updates an Engine
//
-// - name: Immutable. The fully qualified resource name of the engine. This
-// field must be a UTF-8 encoded string with a length limit of 1024
-// characters. Format:
+// - name: Immutable. Identifier. The fully qualified resource name of the
+// engine. This field must be a UTF-8 encoded string with a length limit of
+// 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{
// engine}` engine should be 1-63 characters, and valid characters are
// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -40285,7 +40292,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json
index 8cc1f74..f0dd3a2 100644
--- a/discoveryengine/v1alpha/discoveryengine-api.json
+++ b/discoveryengine/v1alpha/discoveryengine-api.json
@@ -1234,7 +1234,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -1496,7 +1496,7 @@
"Available for all data store parsing configs.",
"Only available if ChunkingConfig is enabled on the data store.",
"Returns the converted Image bytes (as JPEG or PNG) if available.",
- "Return image bytes if image_id of a document is provided, only supported for enabling shareholder-structure in layout parsing config for now."
+ "Return image bytes in base64 encoded format if image_id of a document is provided, only supported for enabling shareholder-structure in layout parsing config for now."
],
"location": "query",
"type": "string"
@@ -4070,7 +4070,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$",
"required": true,
@@ -5459,7 +5459,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -5693,7 +5693,7 @@
"Available for all data store parsing configs.",
"Only available if ChunkingConfig is enabled on the data store.",
"Returns the converted Image bytes (as JPEG or PNG) if available.",
- "Return image bytes if image_id of a document is provided, only supported for enabling shareholder-structure in layout parsing config for now."
+ "Return image bytes in base64 encoded format if image_id of a document is provided, only supported for enabling shareholder-structure in layout parsing config for now."
],
"location": "query",
"type": "string"
@@ -8260,6 +8260,49 @@
}
}
},
+ "notebooks": {
+ "resources": {
+ "sources": {
+ "methods": {
+ "uploadFile": {
+ "description": "Uploads a file for Notebook LM to use. Creates a Source.",
+ "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/notebooks/{notebooksId}/sources/{sourceId}:uploadFile",
+ "httpMethod": "POST",
+ "id": "discoveryengine.projects.locations.notebooks.sources.uploadFile",
+ "parameterOrder": [
+ "parent",
+ "sourceId"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook}",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/notebooks/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "sourceId": {
+ "description": "The source id of the associated file. If not set, a source id will be generated and a new tentative source will be created.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1alpha/{+parent}/sources/{sourceId}:uploadFile",
+ "request": {
+ "$ref": "GoogleCloudNotebooklmV1alphaUploadSourceFileRequest"
+ },
+ "response": {
+ "$ref": "GoogleCloudNotebooklmV1alphaUploadSourceFileResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ },
"operations": {
"methods": {
"get": {
@@ -9130,7 +9173,7 @@
}
}
},
- "revision": "20250509",
+ "revision": "20250514",
"rootUrl": "https://discoveryengine.googleapis.com/",
"schemas": {
"ApiservingMediaRequestInfo": {
@@ -10781,7 +10824,7 @@
"type": "string"
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"servingConfigDataStore": {
@@ -10862,7 +10905,7 @@
"id": "GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -11190,7 +11233,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -11205,7 +11248,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -11225,7 +11268,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
@@ -16678,7 +16721,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -16763,7 +16806,7 @@
"id": "GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -17401,7 +17444,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -17416,7 +17459,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -17436,7 +17479,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"recommendationMetadata": {
@@ -24954,7 +24997,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -25039,7 +25082,7 @@
"id": "GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -25373,7 +25416,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -25388,7 +25431,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -25408,7 +25451,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
@@ -27656,10 +27699,6 @@
"$ref": "ApiservingMediaRequestInfo",
"description": "Media upload request metadata."
},
- "projectId": {
- "description": "The project (notebook) id of the uploaded source. Prefer to use the parent field instead.",
- "type": "string"
- },
"sourceId": {
"description": "The source id of the associated file. If not set, a source id will be generated and a new tentative source will be created.",
"type": "string"
diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go
index f788809..366c7ff 100644
--- a/discoveryengine/v1alpha/discoveryengine-gen.go
+++ b/discoveryengine/v1alpha/discoveryengine-gen.go
@@ -198,6 +198,7 @@
rs.Evaluations = NewProjectsLocationsEvaluationsService(s)
rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
rs.IdentityMappingStores = NewProjectsLocationsIdentityMappingStoresService(s)
+ rs.Notebooks = NewProjectsLocationsNotebooksService(s)
rs.Operations = NewProjectsLocationsOperationsService(s)
rs.Podcasts = NewProjectsLocationsPodcastsService(s)
rs.RankingConfigs = NewProjectsLocationsRankingConfigsService(s)
@@ -223,6 +224,8 @@
IdentityMappingStores *ProjectsLocationsIdentityMappingStoresService
+ Notebooks *ProjectsLocationsNotebooksService
+
Operations *ProjectsLocationsOperationsService
Podcasts *ProjectsLocationsPodcastsService
@@ -1036,6 +1039,27 @@
s *Service
}
+func NewProjectsLocationsNotebooksService(s *Service) *ProjectsLocationsNotebooksService {
+ rs := &ProjectsLocationsNotebooksService{s: s}
+ rs.Sources = NewProjectsLocationsNotebooksSourcesService(s)
+ return rs
+}
+
+type ProjectsLocationsNotebooksService struct {
+ s *Service
+
+ Sources *ProjectsLocationsNotebooksSourcesService
+}
+
+func NewProjectsLocationsNotebooksSourcesService(s *Service) *ProjectsLocationsNotebooksSourcesService {
+ rs := &ProjectsLocationsNotebooksSourcesService{s: s}
+ return rs
+}
+
+type ProjectsLocationsNotebooksSourcesService struct {
+ s *Service
+}
+
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
rs := &ProjectsLocationsOperationsService{s: s}
return rs
@@ -3424,7 +3448,8 @@
// DataStore will be protected by the KMS key, as indicated in the cmek_config
// field.
KmsKeyName string `json:"kmsKeyName,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -3514,8 +3539,8 @@
// GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -3996,7 +4021,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -4009,9 +4034,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -4024,9 +4050,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -11219,7 +11245,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1alphaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -11315,8 +11342,8 @@
// GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -12274,7 +12301,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -12287,9 +12314,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -12302,9 +12330,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -22820,7 +22848,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1betaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -22913,8 +22942,8 @@
// GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -23406,7 +23435,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -23419,9 +23448,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -23434,9 +23464,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -26794,9 +26824,6 @@
Blob *GdataMedia `json:"blob,omitempty"`
// MediaRequestInfo: Media upload request metadata.
MediaRequestInfo *ApiservingMediaRequestInfo `json:"mediaRequestInfo,omitempty"`
- // ProjectId: The project (notebook) id of the uploaded source. Prefer to use
- // the parent field instead.
- ProjectId string `json:"projectId,omitempty"`
// SourceId: The source id of the associated file. If not set, a source id will
// be generated and a new tentative source will be created.
SourceId string `json:"sourceId,omitempty"`
@@ -31555,7 +31582,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
@@ -32411,10 +32439,10 @@
//
// PNG) if available.
//
-// "IMAGE_BYTES" - Return image bytes if image_id of a document is provided,
+// "IMAGE_BYTES" - Return image bytes in base64 encoded format if image_id of
//
-// only supported for enabling shareholder-structure in layout parsing config
-// for now.
+// a document is provided, only supported for enabling shareholder-structure in
+// layout parsing config for now.
func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
c.urlParams_.Set("processedDocumentType", processedDocumentType)
return c
@@ -42147,9 +42175,9 @@
// Patch: Updates an Engine
//
-// - name: Immutable. The fully qualified resource name of the engine. This
-// field must be a UTF-8 encoded string with a length limit of 1024
-// characters. Format:
+// - name: Immutable. Identifier. The fully qualified resource name of the
+// engine. This field must be a UTF-8 encoded string with a length limit of
+// 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{
// engine}` engine should be 1-63 characters, and valid characters are
// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -47395,7 +47423,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
@@ -48144,10 +48173,10 @@
//
// PNG) if available.
//
-// "IMAGE_BYTES" - Return image bytes if image_id of a document is provided,
+// "IMAGE_BYTES" - Return image bytes in base64 encoded format if image_id of
//
-// only supported for enabling shareholder-structure in layout parsing config
-// for now.
+// a document is provided, only supported for enabling shareholder-structure in
+// layout parsing config for now.
func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
c.urlParams_.Set("processedDocumentType", processedDocumentType)
return c
@@ -57872,6 +57901,116 @@
}
}
+type ProjectsLocationsNotebooksSourcesUploadFileCall struct {
+ s *Service
+ parent string
+ sourceId string
+ googlecloudnotebooklmv1alphauploadsourcefilerequest *GoogleCloudNotebooklmV1alphaUploadSourceFileRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// UploadFile: Uploads a file for Notebook LM to use. Creates a Source.
+//
+// - parent: The parent resource where the sources will be created. Format:
+// projects/{project}/locations/{location}/notebooks/{notebook}.
+// - sourceId: The source id of the associated file. If not set, a source id
+// will be generated and a new tentative source will be created.
+func (r *ProjectsLocationsNotebooksSourcesService) UploadFile(parent string, sourceId string, googlecloudnotebooklmv1alphauploadsourcefilerequest *GoogleCloudNotebooklmV1alphaUploadSourceFileRequest) *ProjectsLocationsNotebooksSourcesUploadFileCall {
+ c := &ProjectsLocationsNotebooksSourcesUploadFileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.sourceId = sourceId
+ c.googlecloudnotebooklmv1alphauploadsourcefilerequest = googlecloudnotebooklmv1alphauploadsourcefilerequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsNotebooksSourcesUploadFileCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebooksSourcesUploadFileCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsNotebooksSourcesUploadFileCall) Context(ctx context.Context) *ProjectsLocationsNotebooksSourcesUploadFileCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsNotebooksSourcesUploadFileCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsNotebooksSourcesUploadFileCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudnotebooklmv1alphauploadsourcefilerequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sources/{sourceId}:uploadFile")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ "sourceId": c.sourceId,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.notebooks.sources.uploadFile", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "discoveryengine.projects.locations.notebooks.sources.uploadFile" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *GoogleCloudNotebooklmV1alphaUploadSourceFileResponse.ServerResponse.Header
+// or (if a response was returned at all) in error.(*googleapi.Error).Header.
+// Use googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsLocationsNotebooksSourcesUploadFileCall) Do(opts ...googleapi.CallOption) (*GoogleCloudNotebooklmV1alphaUploadSourceFileResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &GoogleCloudNotebooklmV1alphaUploadSourceFileResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.notebooks.sources.uploadFile", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
type ProjectsLocationsOperationsGetCall struct {
s *Service
name string
diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json
index 46bacca..f4f6e2d 100644
--- a/discoveryengine/v1beta/discoveryengine-api.json
+++ b/discoveryengine/v1beta/discoveryengine-api.json
@@ -719,7 +719,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -3304,7 +3304,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$",
"required": true,
@@ -4633,7 +4633,7 @@
],
"parameters": {
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$",
"required": true,
@@ -8004,7 +8004,7 @@
}
}
},
- "revision": "20250509",
+ "revision": "20250514",
"rootUrl": "https://discoveryengine.googleapis.com/",
"schemas": {
"GoogleApiDistribution": {
@@ -9063,7 +9063,7 @@
"type": "string"
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"servingConfigDataStore": {
@@ -9144,7 +9144,7 @@
"id": "GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -9472,7 +9472,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -9487,7 +9487,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -9507,7 +9507,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
@@ -12919,7 +12919,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -13004,7 +13004,7 @@
"id": "GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -13425,7 +13425,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -13440,7 +13440,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -13460,7 +13460,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"recommendationMetadata": {
@@ -19795,7 +19795,7 @@
"description": "Language info for DataStore."
},
"name": {
- "description": "Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
+ "description": "Immutable. Identifier. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.",
"type": "string"
},
"naturalLanguageQueryUnderstandingConfig": {
@@ -19880,7 +19880,7 @@
"id": "GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore",
"properties": {
"disabledForServing": {
- "description": "If set true, the DataStore will not be available for serving search requests.",
+ "description": "Optional. If set true, the DataStore will not be available for serving search requests.",
"type": "boolean"
}
},
@@ -20431,7 +20431,7 @@
"type": "string"
},
"dataStoreIds": {
- "description": "The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
+ "description": "Optional. The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.",
"items": {
"type": "string"
},
@@ -20446,7 +20446,7 @@
"type": "string"
},
"industryVertical": {
- "description": "The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
+ "description": "Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine.",
"enum": [
"INDUSTRY_VERTICAL_UNSPECIFIED",
"GENERIC",
@@ -20466,7 +20466,7 @@
"description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical."
},
"name": {
- "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
+ "description": "Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"searchEngineConfig": {
diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go
index 47d9e64..3349e33 100644
--- a/discoveryengine/v1beta/discoveryengine-gen.go
+++ b/discoveryengine/v1beta/discoveryengine-gen.go
@@ -2621,7 +2621,8 @@
// DataStore will be protected by the KMS key, as indicated in the cmek_config
// field.
KmsKeyName string `json:"kmsKeyName,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -2711,8 +2712,8 @@
// GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -3193,7 +3194,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -3206,9 +3207,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -3221,9 +3223,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -7541,7 +7543,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1alphaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -7634,8 +7637,8 @@
// GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -8260,7 +8263,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -8273,9 +8276,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -8288,9 +8292,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -17011,7 +17015,8 @@
KmsKeyName string `json:"kmsKeyName,omitempty"`
// LanguageInfo: Language info for DataStore.
LanguageInfo *GoogleCloudDiscoveryengineV1betaLanguageInfo `json:"languageInfo,omitempty"`
- // Name: Immutable. The full resource name of the data store. Format:
+ // Name: Immutable. Identifier. The full resource name of the data store.
+ // Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
// limit of 1024 characters.
@@ -17107,8 +17112,8 @@
// GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore: Stores
// information regarding the serving configurations at DataStore level.
type GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore struct {
- // DisabledForServing: If set true, the DataStore will not be available for
- // serving search requests.
+ // DisabledForServing: Optional. If set true, the DataStore will not be
+ // available for serving search requests.
DisabledForServing bool `json:"disabledForServing,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledForServing") to
// unconditionally include in API requests. By default, fields with empty or
@@ -17930,7 +17935,7 @@
CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
CreateTime string `json:"createTime,omitempty"`
- // DataStoreIds: The data stores associated with this engine. For
+ // DataStoreIds: Optional. The data stores associated with this engine. For
// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
// can only associate with at most one data store. If solution_type is
// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
@@ -17943,9 +17948,10 @@
// DisplayName: Required. The display name of the engine. Should be human
// readable. UTF-8 encoded string with limit of 1024 characters.
DisplayName string `json:"displayName,omitempty"`
- // IndustryVertical: The industry vertical that the engine registers. The
- // restriction of the Engine industry vertical is based on DataStore: Vertical
- // on Engine has to match vertical of the DataStore linked to the engine.
+ // IndustryVertical: Optional. The industry vertical that the engine registers.
+ // The restriction of the Engine industry vertical is based on DataStore:
+ // Vertical on Engine has to match vertical of the DataStore linked to the
+ // engine.
//
// Possible values:
// "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
@@ -17958,9 +17964,9 @@
// applicable on the data stores with solution_type
// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
- // Name: Immutable. The fully qualified resource name of the engine. This field
- // must be a UTF-8 encoded string with a length limit of 1024 characters.
- // Format:
+ // Name: Immutable. Identifier. The fully qualified resource name of the
+ // engine. This field must be a UTF-8 encoded string with a length limit of
+ // 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{en
// gine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/.
// Otherwise, an INVALID_ARGUMENT error is returned.
@@ -28137,7 +28143,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
@@ -37834,9 +37841,9 @@
// Patch: Updates an Engine
//
-// - name: Immutable. The fully qualified resource name of the engine. This
-// field must be a UTF-8 encoded string with a length limit of 1024
-// characters. Format:
+// - name: Immutable. Identifier. The fully qualified resource name of the
+// engine. This field must be a UTF-8 encoded string with a length limit of
+// 1024 characters. Format:
// `projects/{project}/locations/{location}/collections/{collection}/engines/{
// engine}` engine should be 1-63 characters, and valid characters are
// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -42847,7 +42854,8 @@
// Patch: Updates a DataStore
//
-// - name: Immutable. The full resource name of the data store. Format:
+// - name: Immutable. Identifier. The full resource name of the data store.
+// Format:
// `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
// ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
// length limit of 1024 characters.
diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json
index 2f17e98..a6d2618 100644
--- a/dlp/v2/dlp-api.json
+++ b/dlp/v2/dlp-api.json
@@ -5113,7 +5113,7 @@
}
}
},
- "revision": "20250504",
+ "revision": "20250511",
"rootUrl": "https://dlp.googleapis.com/",
"schemas": {
"GooglePrivacyDlpV2Action": {
@@ -8621,7 +8621,7 @@
"type": "array"
},
"fileStoreIsEmpty": {
- "description": "The file store does not have any files. If the profiling failed, this will be false.",
+ "description": "The file store does not have any files. If the profiling operation failed, this is false.",
"type": "boolean"
},
"fileStoreLocation": {
diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go
index ce49e11..c8060bb 100644
--- a/dlp/v2/dlp-gen.go
+++ b/dlp/v2/dlp-gen.go
@@ -5536,7 +5536,7 @@
// FileStoreInfoTypeSummaries: InfoTypes detected in this file store.
FileStoreInfoTypeSummaries []*GooglePrivacyDlpV2FileStoreInfoTypeSummary `json:"fileStoreInfoTypeSummaries,omitempty"`
// FileStoreIsEmpty: The file store does not have any files. If the profiling
- // failed, this will be false.
+ // operation failed, this is false.
FileStoreIsEmpty bool `json:"fileStoreIsEmpty,omitempty"`
// FileStoreLocation: The location of the file store. * Cloud Storage:
// https://cloud.google.com/storage/docs/locations#available-locations * Amazon
diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json
index 6b86bbb..0a506f0 100644
--- a/drive/v3/drive-api.json
+++ b/drive/v3/drive-api.json
@@ -669,7 +669,7 @@
]
},
"delete": {
- "description": "Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).",
+ "description": "Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).",
"flatPath": "files/{fileId}/comments/{commentId}",
"httpMethod": "DELETE",
"id": "drive.comments.delete",
@@ -2806,7 +2806,7 @@
}
}
},
- "revision": "20250506",
+ "revision": "20250511",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go
index 0dacc9b..686b65e 100644
--- a/drive/v3/drive-gen.go
+++ b/drive/v3/drive-gen.go
@@ -4673,9 +4673,6 @@
// Delete: Deletes a comment. For more information, see Manage comments and
// replies
// (https://developers.google.com/workspace/drive/api/guides/manage-comments).
-// Required: The `fields` parameter must be set. To return the exact fields you
-// need, see Return specific fields
-// (https://developers.google.com/workspace/drive/api/guides/fields-parameter).
//
// - commentId: The ID of the comment.
// - fileId: The ID of the file.
diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json
index 63096f9..beff94e 100644
--- a/gkebackup/v1/gkebackup-api.json
+++ b/gkebackup/v1/gkebackup-api.json
@@ -2227,7 +2227,7 @@
}
}
},
- "revision": "20250414",
+ "revision": "20250507",
"rootUrl": "https://gkebackup.googleapis.com/",
"schemas": {
"AuditConfig": {
@@ -2550,10 +2550,52 @@
},
"type": "object"
},
+ "BackupConfigDetails": {
+ "description": "BackupConfigDetails defines the configuration of Backups created via this BackupPlan.",
+ "id": "BackupConfigDetails",
+ "properties": {
+ "allNamespaces": {
+ "description": "Output only. If True, include all namespaced resources",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "encryptionKey": {
+ "$ref": "EncryptionKey",
+ "description": "Output only. This defines a customer managed encryption key that will be used to encrypt the \"config\" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted.",
+ "readOnly": true
+ },
+ "includeSecrets": {
+ "description": "Output only. This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups. Default: False",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "includeVolumeData": {
+ "description": "Output only. This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup. Default: False",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "selectedApplications": {
+ "$ref": "NamespacedNames",
+ "description": "Output only. If set, include just the resources referenced by the listed ProtectedApplications.",
+ "readOnly": true
+ },
+ "selectedNamespaces": {
+ "$ref": "Namespaces",
+ "description": "Output only. If set, include just the resources in the listed namespaces.",
+ "readOnly": true
+ }
+ },
+ "type": "object"
+ },
"BackupPlan": {
"description": "Defines the configuration and scheduling for a \"line\" of Backups.",
"id": "BackupPlan",
"properties": {
+ "backupChannel": {
+ "description": "Output only. The fully qualified name of the BackupChannel to be used to create a backup. This field is set only if the cluster being backed up is in a different project. `projects/*/locations/*/backupChannels/*`",
+ "readOnly": true,
+ "type": "string"
+ },
"backupConfig": {
"$ref": "BackupConfig",
"description": "Optional. Defines the configuration of Backups created via this BackupPlan."
@@ -2718,6 +2760,11 @@
"description": "Contains metadata about the backup plan/backup.",
"id": "BackupPlanDetails",
"properties": {
+ "backupConfigDetails": {
+ "$ref": "BackupConfigDetails",
+ "description": "Output only. Contains details about the BackupConfig of Backups created via this BackupPlan.",
+ "readOnly": true
+ },
"lastSuccessfulBackup": {
"description": "Output only. The fully qualified name of the last successful Backup created under this BackupPlan. `projects/*/locations/*/backupPlans/*/backups/*`",
"readOnly": true,
@@ -2741,6 +2788,11 @@
"readOnly": true,
"type": "integer"
},
+ "retentionPolicyDetails": {
+ "$ref": "RetentionPolicyDetails",
+ "description": "Output only. Contains details about the RetentionPolicy of Backups created via this BackupPlan.",
+ "readOnly": true
+ },
"rpoRiskLevel": {
"description": "Output only. A number that represents the current risk level of this BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.",
"format": "int32",
@@ -3928,6 +3980,11 @@
"readOnly": true,
"type": "string"
},
+ "restoreChannel": {
+ "description": "Output only. The fully qualified name of the RestoreChannel to be used to create a RestorePlan. This field is set only if the `backup_plan` is in a different project than the RestorePlan. Format: `projects/*/locations/*/restoreChannels/*`",
+ "readOnly": true,
+ "type": "string"
+ },
"restoreConfig": {
"$ref": "RestoreConfig",
"description": "Required. Configuration of Restores created via this RestorePlan."
@@ -4034,6 +4091,23 @@
},
"type": "object"
},
+ "RetentionPolicyDetails": {
+ "description": "RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.",
+ "id": "RetentionPolicyDetails",
+ "properties": {
+ "backupDeleteLockDays": {
+ "description": "Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)",
+ "format": "int32",
+ "type": "integer"
+ },
+ "backupRetainDays": {
+ "description": "Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value \u003e= 0 and \u003c= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Default: 0 (no automatic deletion)",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
"RpoConfig": {
"description": "Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.",
"id": "RpoConfig",
diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go
index 75f624d..f1da537 100644
--- a/gkebackup/v1/gkebackup-gen.go
+++ b/gkebackup/v1/gkebackup-gen.go
@@ -631,9 +631,56 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// BackupConfigDetails: BackupConfigDetails defines the configuration of
+// Backups created via this BackupPlan.
+type BackupConfigDetails struct {
+ // AllNamespaces: Output only. If True, include all namespaced resources
+ AllNamespaces bool `json:"allNamespaces,omitempty"`
+ // EncryptionKey: Output only. This defines a customer managed encryption key
+ // that will be used to encrypt the "config" portion (the Kubernetes resources)
+ // of Backups created via this plan. Default (empty): Config backup artifacts
+ // will not be encrypted.
+ EncryptionKey *EncryptionKey `json:"encryptionKey,omitempty"`
+ // IncludeSecrets: Output only. This flag specifies whether Kubernetes Secret
+ // resources should be included when they fall into the scope of Backups.
+ // Default: False
+ IncludeSecrets bool `json:"includeSecrets,omitempty"`
+ // IncludeVolumeData: Output only. This flag specifies whether volume data
+ // should be backed up when PVCs are included in the scope of a Backup.
+ // Default: False
+ IncludeVolumeData bool `json:"includeVolumeData,omitempty"`
+ // SelectedApplications: Output only. If set, include just the resources
+ // referenced by the listed ProtectedApplications.
+ SelectedApplications *NamespacedNames `json:"selectedApplications,omitempty"`
+ // SelectedNamespaces: Output only. If set, include just the resources in the
+ // listed namespaces.
+ SelectedNamespaces *Namespaces `json:"selectedNamespaces,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "AllNamespaces") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "AllNamespaces") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s BackupConfigDetails) MarshalJSON() ([]byte, error) {
+ type NoMethod BackupConfigDetails
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// BackupPlan: Defines the configuration and scheduling for a "line" of
// Backups.
type BackupPlan struct {
+ // BackupChannel: Output only. The fully qualified name of the BackupChannel to
+ // be used to create a backup. This field is set only if the cluster being
+ // backed up is in a different project.
+ // `projects/*/locations/*/backupChannels/*`
+ BackupChannel string `json:"backupChannel,omitempty"`
// BackupConfig: Optional. Defines the configuration of Backups created via
// this BackupPlan.
BackupConfig *BackupConfig `json:"backupConfig,omitempty"`
@@ -716,13 +763,13 @@
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
- // ForceSendFields is a list of field names (e.g. "BackupConfig") to
+ // ForceSendFields is a list of field names (e.g. "BackupChannel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "BackupConfig") to include in API
+ // NullFields is a list of field names (e.g. "BackupChannel") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
@@ -793,6 +840,9 @@
// BackupPlanDetails: Contains metadata about the backup plan/backup.
type BackupPlanDetails struct {
+ // BackupConfigDetails: Output only. Contains details about the BackupConfig of
+ // Backups created via this BackupPlan.
+ BackupConfigDetails *BackupConfigDetails `json:"backupConfigDetails,omitempty"`
// LastSuccessfulBackup: Output only. The fully qualified name of the last
// successful Backup created under this BackupPlan.
// `projects/*/locations/*/backupPlans/*/backups/*`
@@ -808,6 +858,9 @@
// ProtectedPodCount: Output only. The number of Kubernetes Pods backed up in
// the last successful Backup created via this BackupPlan.
ProtectedPodCount int64 `json:"protectedPodCount,omitempty"`
+ // RetentionPolicyDetails: Output only. Contains details about the
+ // RetentionPolicy of Backups created via this BackupPlan.
+ RetentionPolicyDetails *RetentionPolicyDetails `json:"retentionPolicyDetails,omitempty"`
// RpoRiskLevel: Output only. A number that represents the current risk level
// of this BackupPlan from RPO perspective with 1 being no risk and 5 being
// highest risk.
@@ -824,13 +877,13 @@
// "DEACTIVATED" - The BackupPlan has been deactivated.
// "DELETING" - The BackupPlan is in the process of being deleted.
State string `json:"state,omitempty"`
- // ForceSendFields is a list of field names (e.g. "LastSuccessfulBackup") to
+ // ForceSendFields is a list of field names (e.g. "BackupConfigDetails") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "LastSuccessfulBackup") to include
+ // NullFields is a list of field names (e.g. "BackupConfigDetails") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
@@ -2468,6 +2521,11 @@
// Name: Output only. The full name of the RestorePlan resource. Format:
// `projects/*/locations/*/restorePlans/*`.
Name string `json:"name,omitempty"`
+ // RestoreChannel: Output only. The fully qualified name of the RestoreChannel
+ // to be used to create a RestorePlan. This field is set only if the
+ // `backup_plan` is in a different project than the RestorePlan. Format:
+ // `projects/*/locations/*/restoreChannels/*`
+ RestoreChannel string `json:"restoreChannel,omitempty"`
// RestoreConfig: Required. Configuration of Restores created via this
// RestorePlan.
RestoreConfig *RestoreConfig `json:"restoreConfig,omitempty"`
@@ -2613,6 +2671,42 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// RetentionPolicyDetails: RetentionPolicyDetails defines a Backup retention
+// policy for a BackupPlan.
+type RetentionPolicyDetails struct {
+ // BackupDeleteLockDays: Optional. Minimum age for Backups created via this
+ // BackupPlan (in days). This field MUST be an integer value between 0-90
+ // (inclusive). A Backup created under this BackupPlan will NOT be deletable
+ // until it reaches Backup's (create_time + backup_delete_lock_days). Updating
+ // this field of a BackupPlan does NOT affect existing Backups under it.
+ // Backups created AFTER a successful update will inherit the new value.
+ // Default: 0 (no delete blocking)
+ BackupDeleteLockDays int64 `json:"backupDeleteLockDays,omitempty"`
+ // BackupRetainDays: Optional. The default maximum age of a Backup created via
+ // this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
+ // specified, a Backup created under this BackupPlan will be automatically
+ // deleted after its age reaches (create_time + backup_retain_days). If not
+ // specified, Backups created under this BackupPlan will NOT be subject to
+ // automatic deletion. Default: 0 (no automatic deletion)
+ BackupRetainDays int64 `json:"backupRetainDays,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "BackupDeleteLockDays") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "BackupDeleteLockDays") to include
+ // in API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s RetentionPolicyDetails) MarshalJSON() ([]byte, error) {
+ type NoMethod RetentionPolicyDetails
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// RpoConfig: Defines RPO scheduling configuration for automatically creating
// Backups via this BackupPlan.
type RpoConfig struct {
diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json
index 214d6a7..01e0a5c 100644
--- a/healthcare/v1/healthcare-api.json
+++ b/healthcare/v1/healthcare-api.json
@@ -3666,7 +3666,7 @@
]
},
"Patient-everything": {
- "description": "Retrieves a Patient resource and resources related to that patient. Implements the FHIR extended operation Patient-everything ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything), [STU3](http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything), [R4](http://hl7.org/implement/standards/fhir/R4/patient-operations.html#everything)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The patient resource itself. * All the resources directly referenced by the patient resource. * Resources directly referencing the patient resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the patient compartment definition ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-patient.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), [R4](http://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details the eligible resource types and referencing search parameters. For samples that show how to call `Patient-everything`, see [Getting all patient compartment resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_all_patient_compartment_resources).",
+ "description": "Retrieves a Patient resource and resources related to that patient. Implements the FHIR extended operation Patient-everything ([DSTU2](https://hl7.org/fhir/DSTU2/patient-operations.html#everything), [STU3](https://hl7.org/fhir/STU3/patient-operations.html#everything), [R4](https://hl7.org/fhir/R4/patient-operation-everything.html)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The patient resource itself. * All the resources directly referenced by the patient resource. * Resources directly referencing the patient resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the patient compartment definition ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-patient.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), [R4](http://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details the eligible resource types and referencing search parameters. For samples that show how to call `Patient-everything`, see [Getting all patient compartment resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_all_patient_compartment_resources).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Patient/{PatientId}/$everything",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything",
@@ -3749,7 +3749,7 @@
]
},
"Resource-validate": {
- "description": "Validates an input FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The `Parameters` input syntax is not supported. The `profile` query parameter can be used to request that the resource only be validated against a specific profile. If a profile with the given URL cannot be found in the FHIR store then an error is returned. Errors generated by validation contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
+ "description": "Validates an input FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate ([DSTU2](https://hl7.org/fhir/DSTU2/resource-operations.html#validate), [STU3](https://hl7.org/fhir/STU3/resource-operations.html#validate), or [R4](https://hl7.org/fhir/R4/resource-operation-validate.html)). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The `Parameters` input syntax is not supported. The `profile` query parameter can be used to request that the resource only be validated against a specific profile. If a profile with the given URL cannot be found in the FHIR store then an error is returned. Errors generated by validation contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/$validate",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-validate",
@@ -3771,7 +3771,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), or [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), or [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -3832,7 +3832,7 @@
]
},
"capabilities": {
- "description": "Gets the FHIR capability statement ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), [R4](http://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or the [conformance statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or the [conformance interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.",
+ "description": "Gets the FHIR capability statement ([STU3](https://hl7.org/fhir/STU3/capabilitystatement.html), [R4](https://hl7.org/fhir/R4/capabilitystatement.html)), or the [conformance statement](https://hl7.org/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](https://hl7.org/fhir/STU3/http.html#capabilities), [R4](https://hl7.org/fhir/R4/http.html#capabilities)), or the [conformance interaction](https://hl7.org/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/metadata",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities",
@@ -3875,7 +3875,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to delete, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Required. The FHIR resource type to delete, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -3909,7 +3909,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -3946,7 +3946,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -3966,7 +3966,7 @@
]
},
"create": {
- "description": "Creates a FHIR resource. Implements the FHIR standard create interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#create)), which creates a new resource with a server-assigned resource ID. Also supports the FHIR standard conditional create interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#ccreate)), specified by supplying an `If-None-Exist` header containing a FHIR search query, limited to searching by resource identifier. If no resources match this search query, the server processes the create operation as normal. When using conditional create, the search term for identifier should be in the pattern `identifier=system|value` or `identifier=value` - similar to the `search` method on resources with a specific identifier. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the resource as it was created on the server, including the server-assigned resource ID and version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `create`, see [Creating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).",
+ "description": "Creates a FHIR resource. Implements the FHIR standard create interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#create), [STU3](https://hl7.org/fhir/STU3/http.html#create), [R4](https://hl7.org/fhir/R4/http.html#create)), which creates a new resource with a server-assigned resource ID. Also supports the FHIR standard conditional create interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#ccreate), [STU3](https://hl7.org/fhir/STU3/http.html#ccreate), [R4](https://hl7.org/fhir/R4/http.html#ccreate)), specified by supplying an `If-None-Exist` header containing a FHIR search query, limited to searching by resource identifier. If no resources match this search query, the server processes the create operation as normal. When using conditional create, the search term for identifier should be in the pattern `identifier=system|value` or `identifier=value` - similar to the `search` method on resources with a specific identifier. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the resource as it was created on the server, including the server-assigned resource ID and version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `create`, see [Creating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.create",
@@ -3983,7 +3983,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4003,7 +4003,7 @@
]
},
"delete": {
- "description": "Deletes a FHIR resource. Implements the FHIR standard delete interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#delete)). Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources will be moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. For samples that show how to call `delete`, see [Deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).",
+ "description": "Deletes a FHIR resource. Implements the FHIR standard delete interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#delete), [STU3](https://hl7.org/fhir/STU3/http.html#delete), [R4](https://hl7.org/fhir/R4/http.html#delete)). Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources will be moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. For samples that show how to call `delete`, see [Deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "DELETE",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.delete",
@@ -4029,7 +4029,7 @@
]
},
"executeBundle": {
- "description": "Executes all the requests in the given Bundle. Implements the FHIR standard batch/transaction interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#transaction), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#transaction)). Supports all interactions within a bundle, except search. This method accepts Bundles of type `batch` and `transaction`, processing them according to the batch processing rules ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#brules)) and transaction processing rules ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#trules)). The request body must contain a JSON-encoded FHIR `Bundle` resource, and the request headers must contain `Content-Type: application/fhir+json`. For a batch bundle or a successful transaction, the response body contains a JSON-encoded representation of a `Bundle` resource of type `batch-response` or `transaction-response` containing one entry for each entry in the request, with the outcome of processing the entry. In the case of an error for a transaction bundle, the response body contains a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method checks permissions for each request in the bundle. The `executeBundle` permission is required to call this method, but you must also grant sufficient permissions to execute the individual requests in the bundle. For example, if the bundle contains a request to create a FHIR resource, the caller must also have been granted the `healthcare.fhirResources.create` permission. You can use audit logs to view the permissions for `executeBundle` and each request in the bundle. For more information, see [Viewing Cloud Audit logs](https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For samples that show how to call `executeBundle`, see [Managing FHIR resources using FHIR bundles](https://cloud.google.com/healthcare/docs/how-tos/fhir-bundles).",
+ "description": "Executes all the requests in the given Bundle. Implements the FHIR standard batch/transaction interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#transaction), [STU3](https://hl7.org/fhir/STU3/http.html#transaction), [R4](https://hl7.org/fhir/R4/http.html#transaction)). Supports all interactions within a bundle, except search. This method accepts Bundles of type `batch` and `transaction`, processing them according to the batch processing rules ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.1), [STU3](https://hl7.org/fhir/STU3/http.html#2.21.0.17.1), [R4](https://hl7.org/fhir/R4/http.html#brules)) and transaction processing rules ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.2), [STU3](https://hl7.org/fhir/STU3/http.html#2.21.0.17.2), [R4](https://hl7.org/fhir/R4/http.html#trules)). The request body must contain a JSON-encoded FHIR `Bundle` resource, and the request headers must contain `Content-Type: application/fhir+json`. For a batch bundle or a successful transaction, the response body contains a JSON-encoded representation of a `Bundle` resource of type `batch-response` or `transaction-response` containing one entry for each entry in the request, with the outcome of processing the entry. In the case of an error for a transaction bundle, the response body contains a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method checks permissions for each request in the bundle. The `executeBundle` permission is required to call this method, but you must also grant sufficient permissions to execute the individual requests in the bundle. For example, if the bundle contains a request to create a FHIR resource, the caller must also have been granted the `healthcare.fhirResources.create` permission. You can use audit logs to view the permissions for `executeBundle` and each request in the bundle. For more information, see [Viewing Cloud Audit logs](https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For samples that show how to call `executeBundle`, see [Managing FHIR resources using FHIR bundles](https://cloud.google.com/healthcare/docs/how-tos/fhir-bundles).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle",
@@ -4058,7 +4058,7 @@
]
},
"history": {
- "description": "Lists all the versions of a resource (including the current version and deleted versions) from the FHIR store. Implements the per-resource form of the FHIR standard history interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#history)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `history`, containing the version history sorted from most recent to oldest versions. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `history`, see [Listing FHIR resource versions](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).",
+ "description": "Lists all the versions of a resource (including the current version and deleted versions) from the FHIR store. Implements the per-resource form of the FHIR standard history interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#history), [STU3](https://hl7.org/fhir/STU3/http.html#history), [R4](https://hl7.org/fhir/R4/http.html#history)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `history`, containing the version history sorted from most recent to oldest versions. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `history`, see [Listing FHIR resource versions](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.history",
@@ -4105,7 +4105,7 @@
]
},
"patch": {
- "description": "Updates part of an existing resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard patch interaction ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch method, but the server supports it in the same way it supports STU3. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `patch`, see [Patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).",
+ "description": "Updates part of an existing resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard patch interaction ([STU3](https://hl7.org/fhir/STU3/http.html#patch), [R4](https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch method, but the server supports it in the same way it supports STU3. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `patch`, see [Patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "PATCH",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.patch",
@@ -4134,7 +4134,7 @@
]
},
"read": {
- "description": "Gets the contents of a FHIR resource. Implements the FHIR standard read interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#read)). Also supports the FHIR standard conditional read interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#cread)) specified by supplying an `If-Modified-Since` header with a date/time value or an `If-None-Match` header with an ETag value. On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `read`, see [Getting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).",
+ "description": "Gets the contents of a FHIR resource. Implements the FHIR standard read interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#read), [STU3](https://hl7.org/fhir/STU3/http.html#read), [R4](https://hl7.org/fhir/R4/http.html#read)). Also supports the FHIR standard conditional read interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#cread), [STU3](https://hl7.org/fhir/STU3/http.html#cread), [R4](https://hl7.org/fhir/R4/http.html#cread)) specified by supplying an `If-Modified-Since` header with a date/time value or an `If-None-Match` header with an ETag value. On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `read`, see [Getting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.read",
@@ -4160,7 +4160,7 @@
]
},
"search": {
- "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
+ "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.search",
@@ -4189,7 +4189,7 @@
]
},
"search-type": {
- "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
+ "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type",
@@ -4206,7 +4206,7 @@
"type": "string"
},
"resourceType": {
- "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"required": true,
"type": "string"
@@ -4225,7 +4225,7 @@
]
},
"update": {
- "description": "Updates the entire contents of a resource. Implements the FHIR standard update interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#update)). If the specified resource does not exist and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The resource must contain an `id` element having an identical value to the ID in the REST path of the request. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `update`, see [Updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).",
+ "description": "Updates the entire contents of a resource. Implements the FHIR standard update interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#update), [STU3](https://hl7.org/fhir/STU3/http.html#update), [R4](https://hl7.org/fhir/R4/http.html#update)). If the specified resource does not exist and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The resource must contain an `id` element having an identical value to the ID in the REST path of the request. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `update`, see [Updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "PUT",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.update",
@@ -4254,7 +4254,7 @@
]
},
"vread": {
- "description": "Gets the contents of a version (current or historical) of a FHIR resource by version ID. Implements the FHIR standard vread interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#vread)). On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `vread`, see [Retrieving a FHIR resource version](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).",
+ "description": "Gets the contents of a version (current or historical) of a FHIR resource by version ID. Implements the FHIR standard vread interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#vread), [STU3](https://hl7.org/fhir/STU3/http.html#vread), [R4](https://hl7.org/fhir/R4/http.html#vread)). On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `vread`, see [Retrieving a FHIR resource version](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history/{_historyId}",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.vread",
@@ -5094,7 +5094,7 @@
}
}
},
- "revision": "20250409",
+ "revision": "20250430",
"rootUrl": "https://healthcare.googleapis.com/",
"schemas": {
"AccessDeterminationLogConfig": {
@@ -8424,7 +8424,7 @@
"id": "SearchResourcesRequest",
"properties": {
"resourceType": {
- "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"type": "string"
}
},
diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go
index 388065f..9404351 100644
--- a/healthcare/v1/healthcare-gen.go
+++ b/healthcare/v1/healthcare-gen.go
@@ -5704,9 +5704,9 @@
type SearchResourcesRequest struct {
// ResourceType: Optional. The FHIR resource type to search, such as Patient or
// Observation. For a complete list, see the FHIR Resource Index (DSTU2
- // (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
- // (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
- // (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+ // (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+ // (https://hl7.org/fhir/STU3/resourcelist.html), R4
+ // (https://hl7.org/fhir/R4/resourcelist.html)).
ResourceType string `json:"resourceType,omitempty"`
// ForceSendFields is a list of field names (e.g. "ResourceType") to
// unconditionally include in API requests. By default, fields with empty or
@@ -18926,22 +18926,19 @@
// PatientEverything: Retrieves a Patient resource and resources related to
// that patient. Implements the FHIR extended operation Patient-everything
-// (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything),
-// STU3
-// (http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything),
-// R4
-// (http://hl7.org/implement/standards/fhir/R4/patient-operations.html#everything)).
-// On success, the response body contains a JSON-encoded representation of a
-// `Bundle` resource of type `searchset`, containing the results of the
-// operation. Errors generated by the FHIR store contain a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead. The resources in scope for the response
-// are: * The patient resource itself. * All the resources directly referenced
-// by the patient resource. * Resources directly referencing the patient
-// resource that meet the inclusion criteria. The inclusion criteria are based
-// on the membership rules in the patient compartment definition (DSTU2
+// (DSTU2 (https://hl7.org/fhir/DSTU2/patient-operations.html#everything), STU3
+// (https://hl7.org/fhir/STU3/patient-operations.html#everything), R4
+// (https://hl7.org/fhir/R4/patient-operation-everything.html)). On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the operation.
+// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The resources in scope for the response are: * The patient
+// resource itself. * All the resources directly referenced by the patient
+// resource. * Resources directly referencing the patient resource that meet
+// the inclusion criteria. The inclusion criteria are based on the membership
+// rules in the patient compartment definition (DSTU2
// (http://hl7.org/fhir/DSTU2/compartment-patient.html), STU3
// (http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), R4
// (http://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details
@@ -19185,29 +19182,27 @@
// ResourceValidate: Validates an input FHIR resource's conformance to its
// profiles and the profiles configured on the FHIR store. Implements the FHIR
// extended operation $validate (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate),
-// STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate),
-// or R4
-// (http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)).
-// The request body must contain a JSON-encoded FHIR resource, and the request
-// headers must contain `Content-Type: application/fhir+json`. The `Parameters`
-// input syntax is not supported. The `profile` query parameter can be used to
-// request that the resource only be validated against a specific profile. If a
-// profile with the given URL cannot be found in the FHIR store then an error
-// is returned. Errors generated by validation contain a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead.
+// (https://hl7.org/fhir/DSTU2/resource-operations.html#validate), STU3
+// (https://hl7.org/fhir/STU3/resource-operations.html#validate), or R4
+// (https://hl7.org/fhir/R4/resource-operation-validate.html)). The request
+// body must contain a JSON-encoded FHIR resource, and the request headers must
+// contain `Content-Type: application/fhir+json`. The `Parameters` input syntax
+// is not supported. The `profile` query parameter can be used to request that
+// the resource only be validated against a specific profile. If a profile with
+// the given URL cannot be found in the FHIR store then an error is returned.
+// Errors generated by validation contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead.
//
// - parent: The name of the FHIR store that holds the profiles being used for
// validation.
// - type: The FHIR resource type of the resource being validated. For a
// complete list, see the FHIR Resource Index (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), or R4
-// (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), or R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceValidate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -19418,19 +19413,16 @@
}
// Capabilities: Gets the FHIR capability statement (STU3
-// (http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), R4
-// (http://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or
-// the conformance statement
-// (http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the
-// DSTU2 case for the store, which contains a description of functionality
-// supported by the server. Implements the FHIR standard capabilities
-// interaction (STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or the
-// conformance interaction
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in the
-// DSTU2 case. On success, the response body contains a JSON-encoded
-// representation of a `CapabilityStatement` resource.
+// (https://hl7.org/fhir/STU3/capabilitystatement.html), R4
+// (https://hl7.org/fhir/R4/capabilitystatement.html)), or the conformance
+// statement (https://hl7.org/fhir/DSTU2/conformance.html) in the DSTU2 case
+// for the store, which contains a description of functionality supported by
+// the server. Implements the FHIR standard capabilities interaction (STU3
+// (https://hl7.org/fhir/STU3/http.html#capabilities), R4
+// (https://hl7.org/fhir/R4/http.html#capabilities)), or the conformance
+// interaction (https://hl7.org/fhir/DSTU2/http.html#conformance) in the DSTU2
+// case. On success, the response body contains a JSON-encoded representation
+// of a `CapabilityStatement` resource.
//
// - name: Name of the FHIR store to retrieve the capabilities for.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
@@ -19523,9 +19515,9 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to delete, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -19647,9 +19639,9 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to update, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -19749,10 +19741,10 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to update, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -19823,23 +19815,22 @@
}
// Create: Creates a FHIR resource. Implements the FHIR standard create
-// interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#create), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#create), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#create)), which
-// creates a new resource with a server-assigned resource ID. Also supports the
-// FHIR standard conditional create interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#ccreate)), specified
-// by supplying an `If-None-Exist` header containing a FHIR search query,
-// limited to searching by resource identifier. If no resources match this
-// search query, the server processes the create operation as normal. When
-// using conditional create, the search term for identifier should be in the
-// pattern `identifier=system|value` or `identifier=value` - similar to the
-// `search` method on resources with a specific identifier. The request body
-// must contain a JSON-encoded FHIR resource, and the request headers must
-// contain `Content-Type: application/fhir+json`. On success, the response body
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#create), STU3
+// (https://hl7.org/fhir/STU3/http.html#create), R4
+// (https://hl7.org/fhir/R4/http.html#create)), which creates a new resource
+// with a server-assigned resource ID. Also supports the FHIR standard
+// conditional create interaction (DSTU2
+// (https://hl7.org/fhir/DSTU2/http.html#ccreate), STU3
+// (https://hl7.org/fhir/STU3/http.html#ccreate), R4
+// (https://hl7.org/fhir/R4/http.html#ccreate)), specified by supplying an
+// `If-None-Exist` header containing a FHIR search query, limited to searching
+// by resource identifier. If no resources match this search query, the server
+// processes the create operation as normal. When using conditional create, the
+// search term for identifier should be in the pattern
+// `identifier=system|value` or `identifier=value` - similar to the `search`
+// method on resources with a specific identifier. The request body must
+// contain a JSON-encoded FHIR resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. On success, the response body
// contains a JSON-encoded representation of the resource as it was created on
// the server, including the server-assigned resource ID and version ID. Errors
// generated by the FHIR store contain a JSON-encoded `OperationOutcome`
@@ -19852,10 +19843,10 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to create, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -19924,15 +19915,14 @@
}
// Delete: Deletes a FHIR resource. Implements the FHIR standard delete
-// interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#delete), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#delete)). Note: Unless
-// resource versioning is disabled by setting the disable_resource_versioning
-// flag on the FHIR store, the deleted resources will be moved to a history
-// repository that can still be retrieved through vread and related methods,
-// unless they are removed by the purge method. For samples that show how to
-// call `delete`, see Deleting a FHIR resource
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#delete), STU3
+// (https://hl7.org/fhir/STU3/http.html#delete), R4
+// (https://hl7.org/fhir/R4/http.html#delete)). Note: Unless resource
+// versioning is disabled by setting the disable_resource_versioning flag on
+// the FHIR store, the deleted resources will be moved to a history repository
+// that can still be retrieved through vread and related methods, unless they
+// are removed by the purge method. For samples that show how to call `delete`,
+// see Deleting a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).
//
// - name: The name of the resource to delete.
@@ -20000,36 +19990,34 @@
// ExecuteBundle: Executes all the requests in the given Bundle. Implements the
// FHIR standard batch/transaction interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#transaction), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#transaction)).
-// Supports all interactions within a bundle, except search. This method
-// accepts Bundles of type `batch` and `transaction`, processing them according
-// to the batch processing rules (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#brules)) and
-// transaction processing rules (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#trules)). The request
-// body must contain a JSON-encoded FHIR `Bundle` resource, and the request
-// headers must contain `Content-Type: application/fhir+json`. For a batch
-// bundle or a successful transaction, the response body contains a
-// JSON-encoded representation of a `Bundle` resource of type `batch-response`
-// or `transaction-response` containing one entry for each entry in the
-// request, with the outcome of processing the entry. In the case of an error
-// for a transaction bundle, the response body contains a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead. This method checks permissions for each
-// request in the bundle. The `executeBundle` permission is required to call
-// this method, but you must also grant sufficient permissions to execute the
-// individual requests in the bundle. For example, if the bundle contains a
-// request to create a FHIR resource, the caller must also have been granted
-// the `healthcare.fhirResources.create` permission. You can use audit logs to
-// view the permissions for `executeBundle` and each request in the bundle. For
-// more information, see Viewing Cloud Audit logs
+// (https://hl7.org/fhir/DSTU2/http.html#transaction), STU3
+// (https://hl7.org/fhir/STU3/http.html#transaction), R4
+// (https://hl7.org/fhir/R4/http.html#transaction)). Supports all interactions
+// within a bundle, except search. This method accepts Bundles of type `batch`
+// and `transaction`, processing them according to the batch processing rules
+// (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.1), STU3
+// (https://hl7.org/fhir/STU3/http.html#2.21.0.17.1), R4
+// (https://hl7.org/fhir/R4/http.html#brules)) and transaction processing rules
+// (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.2), STU3
+// (https://hl7.org/fhir/STU3/http.html#2.21.0.17.2), R4
+// (https://hl7.org/fhir/R4/http.html#trules)). The request body must contain a
+// JSON-encoded FHIR `Bundle` resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. For a batch bundle or a successful
+// transaction, the response body contains a JSON-encoded representation of a
+// `Bundle` resource of type `batch-response` or `transaction-response`
+// containing one entry for each entry in the request, with the outcome of
+// processing the entry. In the case of an error for a transaction bundle, the
+// response body contains a JSON-encoded `OperationOutcome` resource describing
+// the reason for the error. If the request cannot be mapped to a valid API
+// method on a FHIR store, a generic GCP error might be returned instead. This
+// method checks permissions for each request in the bundle. The
+// `executeBundle` permission is required to call this method, but you must
+// also grant sufficient permissions to execute the individual requests in the
+// bundle. For example, if the bundle contains a request to create a FHIR
+// resource, the caller must also have been granted the
+// `healthcare.fhirResources.create` permission. You can use audit logs to view
+// the permissions for `executeBundle` and each request in the bundle. For more
+// information, see Viewing Cloud Audit logs
// (https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For
// samples that show how to call `executeBundle`, see Managing FHIR resources
// using FHIR bundles
@@ -20105,16 +20093,16 @@
// History: Lists all the versions of a resource (including the current version
// and deleted versions) from the FHIR store. Implements the per-resource form
// of the FHIR standard history interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#history), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#history), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#history)). On success,
-// the response body contains a JSON-encoded representation of a `Bundle`
-// resource of type `history`, containing the version history sorted from most
-// recent to oldest versions. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. For samples that show
-// how to call `history`, see Listing FHIR resource versions
+// (https://hl7.org/fhir/DSTU2/http.html#history), STU3
+// (https://hl7.org/fhir/STU3/http.html#history), R4
+// (https://hl7.org/fhir/R4/http.html#history)). On success, the response body
+// contains a JSON-encoded representation of a `Bundle` resource of type
+// `history`, containing the version history sorted from most recent to oldest
+// versions. Errors generated by the FHIR store contain a JSON-encoded
+// `OperationOutcome` resource describing the reason for the error. If the
+// request cannot be mapped to a valid API method on a FHIR store, a generic
+// GCP error might be returned instead. For samples that show how to call
+// `history`, see Listing FHIR resource versions
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).
//
// - name: The name of the resource to retrieve.
@@ -20234,18 +20222,17 @@
// Patch: Updates part of an existing resource by applying the operations
// specified in a JSON Patch (http://jsonpatch.com/) document. Implements the
// FHIR standard patch interaction (STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#patch), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2 doesn't
-// define a patch method, but the server supports it in the same way it
-// supports STU3. The request body must contain a JSON Patch document, and the
-// request headers must contain `Content-Type: application/json-patch+json`. On
-// success, the response body contains a JSON-encoded representation of the
-// updated resource, including the server-assigned version ID. Errors generated
-// by the FHIR store contain a JSON-encoded `OperationOutcome` resource
-// describing the reason for the error. If the request cannot be mapped to a
-// valid API method on a FHIR store, a generic GCP error might be returned
-// instead. For samples that show how to call `patch`, see Patching a FHIR
-// resource
+// (https://hl7.org/fhir/STU3/http.html#patch), R4
+// (https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch
+// method, but the server supports it in the same way it supports STU3. The
+// request body must contain a JSON Patch document, and the request headers
+// must contain `Content-Type: application/json-patch+json`. On success, the
+// response body contains a JSON-encoded representation of the updated
+// resource, including the server-assigned version ID. Errors generated by the
+// FHIR store contain a JSON-encoded `OperationOutcome` resource describing the
+// reason for the error. If the request cannot be mapped to a valid API method
+// on a FHIR store, a generic GCP error might be returned instead. For samples
+// that show how to call `patch`, see Patching a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).
//
// - name: The name of the resource to update.
@@ -20316,21 +20303,20 @@
}
// Read: Gets the contents of a FHIR resource. Implements the FHIR standard
-// read interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#read), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#read), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#read)). Also supports
-// the FHIR standard conditional read interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#cread), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#cread)) specified by
-// supplying an `If-Modified-Since` header with a date/time value or an
-// `If-None-Match` header with an ETag value. On success, the response body
-// contains a JSON-encoded representation of the resource. Errors generated by
-// the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
-// the reason for the error. If the request cannot be mapped to a valid API
-// method on a FHIR store, a generic GCP error might be returned instead. For
-// samples that show how to call `read`, see Getting a FHIR resource
+// read interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#read), STU3
+// (https://hl7.org/fhir/STU3/http.html#read), R4
+// (https://hl7.org/fhir/R4/http.html#read)). Also supports the FHIR standard
+// conditional read interaction (DSTU2
+// (https://hl7.org/fhir/DSTU2/http.html#cread), STU3
+// (https://hl7.org/fhir/STU3/http.html#cread), R4
+// (https://hl7.org/fhir/R4/http.html#cread)) specified by supplying an
+// `If-Modified-Since` header with a date/time value or an `If-None-Match`
+// header with an ETag value. On success, the response body contains a
+// JSON-encoded representation of the resource. Errors generated by the FHIR
+// store contain a JSON-encoded `OperationOutcome` resource describing the
+// reason for the error. If the request cannot be mapped to a valid API method
+// on a FHIR store, a generic GCP error might be returned instead. For samples
+// that show how to call `read`, see Getting a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).
//
// - name: The name of the resource to retrieve.
@@ -20409,40 +20395,37 @@
// Search: Searches for resources in the given FHIR store according to criteria
// specified as query parameters. Implements the FHIR standard search
-// interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
-// search semantics described in the FHIR Search specification (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/search.html), R4
-// (http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
-// methods of search defined by the specification: * `GET [base]?[parameters]`
-// to search across all resources. * `GET [base]/[type]?[parameters]` to search
-// resources of a specified type. * `POST [base]/_search?[parameters]` as an
-// alternate form having the same semantics as the `GET` method across all
-// resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
-// having the same semantics as the `GET` method for the specified type. The
-// `GET` and `POST` methods do not support compartment searches. The `POST`
-// method does not support `application/x-www-form-urlencoded` search
-// parameters. On success, the response body contains a JSON-encoded
-// representation of a `Bundle` resource of type `searchset`, containing the
-// results of the search. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. The server's
-// capability statement, retrieved through capabilities, indicates what search
-// parameters are supported on each FHIR resource. A list of all search
-// parameters defined by the specification can be found in the FHIR Search
-// Parameter Registry (STU3
-// (http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
-// R4
-// (http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
-// FHIR search parameters for DSTU2 can be found on each resource's definition
-// page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
-// `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
-// `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
-// parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#search), STU3
+// (https://hl7.org/fhir/STU3/http.html#search), R4
+// (https://hl7.org/fhir/R4/http.html#search)) using the search semantics
+// described in the FHIR Search specification (DSTU2
+// (https://hl7.org/fhir/DSTU2/search.html), STU3
+// (https://hl7.org/fhir/STU3/search.html), R4
+// (https://hl7.org/fhir/R4/search.html)). Supports four methods of search
+// defined by the specification: * `GET [base]?[parameters]` to search across
+// all resources. * `GET [base]/[type]?[parameters]` to search resources of a
+// specified type. * `POST [base]/_search?[parameters]` as an alternate form
+// having the same semantics as the `GET` method across all resources. * `POST
+// [base]/[type]/_search?[parameters]` as an alternate form having the same
+// semantics as the `GET` method for the specified type. The `GET` and `POST`
+// methods do not support compartment searches. The `POST` method does not
+// support `application/x-www-form-urlencoded` search parameters. On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the search. Errors
+// generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The server's capability statement, retrieved through
+// capabilities, indicates what search parameters are supported on each FHIR
+// resource. A list of all search parameters defined by the specification can
+// be found in the FHIR Search Parameter Registry (STU3
+// (https://hl7.org/fhir/STU3/searchparameter-registry.html), R4
+// (https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search
+// parameters for DSTU2 can be found on each resource's definition page.
+// Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
+// `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse`
+// (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters:
+// `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
// `_summary=data`, and `_elements`. The maximum number of search results
// returned defaults to 100, which can be overridden by the `_count` parameter
// up to a maximum limit of 1000. The server might return fewer resources than
@@ -20547,40 +20530,37 @@
// SearchType: Searches for resources in the given FHIR store according to
// criteria specified as query parameters. Implements the FHIR standard search
-// interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
-// search semantics described in the FHIR Search specification (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/search.html), R4
-// (http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
-// methods of search defined by the specification: * `GET [base]?[parameters]`
-// to search across all resources. * `GET [base]/[type]?[parameters]` to search
-// resources of a specified type. * `POST [base]/_search?[parameters]` as an
-// alternate form having the same semantics as the `GET` method across all
-// resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
-// having the same semantics as the `GET` method for the specified type. The
-// `GET` and `POST` methods do not support compartment searches. The `POST`
-// method does not support `application/x-www-form-urlencoded` search
-// parameters. On success, the response body contains a JSON-encoded
-// representation of a `Bundle` resource of type `searchset`, containing the
-// results of the search. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. The server's
-// capability statement, retrieved through capabilities, indicates what search
-// parameters are supported on each FHIR resource. A list of all search
-// parameters defined by the specification can be found in the FHIR Search
-// Parameter Registry (STU3
-// (http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
-// R4
-// (http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
-// FHIR search parameters for DSTU2 can be found on each resource's definition
-// page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
-// `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
-// `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
-// parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#search), STU3
+// (https://hl7.org/fhir/STU3/http.html#search), R4
+// (https://hl7.org/fhir/R4/http.html#search)) using the search semantics
+// described in the FHIR Search specification (DSTU2
+// (https://hl7.org/fhir/DSTU2/search.html), STU3
+// (https://hl7.org/fhir/STU3/search.html), R4
+// (https://hl7.org/fhir/R4/search.html)). Supports four methods of search
+// defined by the specification: * `GET [base]?[parameters]` to search across
+// all resources. * `GET [base]/[type]?[parameters]` to search resources of a
+// specified type. * `POST [base]/_search?[parameters]` as an alternate form
+// having the same semantics as the `GET` method across all resources. * `POST
+// [base]/[type]/_search?[parameters]` as an alternate form having the same
+// semantics as the `GET` method for the specified type. The `GET` and `POST`
+// methods do not support compartment searches. The `POST` method does not
+// support `application/x-www-form-urlencoded` search parameters. On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the search. Errors
+// generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The server's capability statement, retrieved through
+// capabilities, indicates what search parameters are supported on each FHIR
+// resource. A list of all search parameters defined by the specification can
+// be found in the FHIR Search Parameter Registry (STU3
+// (https://hl7.org/fhir/STU3/searchparameter-registry.html), R4
+// (https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search
+// parameters for DSTU2 can be found on each resource's definition page.
+// Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
+// `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse`
+// (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters:
+// `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
// `_summary=data`, and `_elements`. The maximum number of search results
// returned defaults to 100, which can be overridden by the `_count` parameter
// up to a maximum limit of 1000. The server might return fewer resources than
@@ -20617,9 +20597,9 @@
// - parent: Name of the FHIR store to retrieve resources from.
// - resourceType: Optional. The FHIR resource type to search, such as Patient
// or Observation. For a complete list, see the FHIR Resource Index (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) SearchType(parent string, resourceType string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -20691,25 +20671,25 @@
// Update: Updates the entire contents of a resource. Implements the FHIR
// standard update interaction (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#update), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#update), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#update)). If the
-// specified resource does not exist and the FHIR store has
-// enable_update_create set, creates the resource with the client-specified ID.
-// It is strongly advised not to include or encode any sensitive data such as
-// patient identifiers in client-specified resource IDs. Those IDs are part of
-// the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub
-// notifications. Those IDs can also be contained in reference fields within
-// other resources. The request body must contain a JSON-encoded FHIR resource,
-// and the request headers must contain `Content-Type: application/fhir+json`.
-// The resource must contain an `id` element having an identical value to the
-// ID in the REST path of the request. On success, the response body contains a
-// JSON-encoded representation of the updated resource, including the
-// server-assigned version ID. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. For samples that show
-// how to call `update`, see Updating a FHIR resource
+// (https://hl7.org/fhir/DSTU2/http.html#update), STU3
+// (https://hl7.org/fhir/STU3/http.html#update), R4
+// (https://hl7.org/fhir/R4/http.html#update)). If the specified resource does
+// not exist and the FHIR store has enable_update_create set, creates the
+// resource with the client-specified ID. It is strongly advised not to include
+// or encode any sensitive data such as patient identifiers in client-specified
+// resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud
+// Audit Logs and Pub/Sub notifications. Those IDs can also be contained in
+// reference fields within other resources. The request body must contain a
+// JSON-encoded FHIR resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. The resource must contain an `id`
+// element having an identical value to the ID in the REST path of the request.
+// On success, the response body contains a JSON-encoded representation of the
+// updated resource, including the server-assigned version ID. Errors generated
+// by the FHIR store contain a JSON-encoded `OperationOutcome` resource
+// describing the reason for the error. If the request cannot be mapped to a
+// valid API method on a FHIR store, a generic GCP error might be returned
+// instead. For samples that show how to call `update`, see Updating a FHIR
+// resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).
//
// - name: The name of the resource to update.
@@ -20781,15 +20761,15 @@
// Vread: Gets the contents of a version (current or historical) of a FHIR
// resource by version ID. Implements the FHIR standard vread interaction
-// (DSTU2 (http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/http.html#vread), R4
-// (http://hl7.org/implement/standards/fhir/R4/http.html#vread)). On success,
-// the response body contains a JSON-encoded representation of the resource.
-// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
-// resource describing the reason for the error. If the request cannot be
-// mapped to a valid API method on a FHIR store, a generic GCP error might be
-// returned instead. For samples that show how to call `vread`, see Retrieving
-// a FHIR resource version
+// (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#vread), STU3
+// (https://hl7.org/fhir/STU3/http.html#vread), R4
+// (https://hl7.org/fhir/R4/http.html#vread)). On success, the response body
+// contains a JSON-encoded representation of the resource. Errors generated by
+// the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
+// the reason for the error. If the request cannot be mapped to a valid API
+// method on a FHIR store, a generic GCP error might be returned instead. For
+// samples that show how to call `vread`, see Retrieving a FHIR resource
+// version
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).
//
// - name: The name of the resource version to retrieve.
diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json
index 1d212a7..004127f 100644
--- a/healthcare/v1beta1/healthcare-api.json
+++ b/healthcare/v1beta1/healthcare-api.json
@@ -4374,7 +4374,7 @@
]
},
"Encounter-everything": {
- "description": "Retrieves an Encounter resource and resources related to that Encounter. Implements the FHIR extended operation Encounter-everything ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/encounter-operations.html#everything), [STU3](http://hl7.org/implement/standards/fhir/STU3/encounter-operations.html#everything), or [R4](https://hl7.org/implement/standards/fhir/R4/encounter-operation-everything.html). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The Encounter resource itself. * All the resources directly referenced by the Encounter resource, including attachments and binaries. * Resources directly referencing the Encounter resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the Encounter Compartment definition ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-encounter.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-encounter.html), [R4](http://hl7.org/fhir/R4/compartmentdefinition-encounter.html)), which details the eligible resource types and referencing search parameters. * Resources referencing to the Encounter resource through the \"http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter\" extension.",
+ "description": "Retrieves an Encounter resource and resources related to that Encounter. Implements the FHIR extended operation Encounter-everything ([DSTU2](https://hl7.org/fhir/DSTU2/encounter-operations.html#everything), [STU3](https://hl7.org/fhir/STU3/encounter-operations.html#everything), or [R4](https://hl7.org/fhir/R4/encounter-operation-everything.html). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The Encounter resource itself. * All the resources directly referenced by the Encounter resource, including attachments and binaries. * Resources directly referencing the Encounter resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the Encounter Compartment definition ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-encounter.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-encounter.html), [R4](http://hl7.org/fhir/R4/compartmentdefinition-encounter.html)), which details the eligible resource types and referencing search parameters. * Resources referencing to the Encounter resource through the \"http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter\" extension.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Encounter/{EncounterId}/$everything",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Encounter-everything",
@@ -4421,7 +4421,7 @@
]
},
"Observation-lastn": {
- "description": "Retrieves the N most recent `Observation` resources for a subject matching search criteria specified as query parameters, grouped by `Observation.code`, sorted from most recent to oldest. Implements the FHIR extended operation Observation-lastn ([STU3](https://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn), [R4](https://hl7.org/implement/standards/fhir/R4/observation-operations.html#lastn)). DSTU2 doesn't define the Observation-lastn method, but the server supports it the same way it supports STU3. Search terms are provided as query parameters following the same pattern as the search method. The following search parameters must be provided: - `subject` or `patient` to specify a subject for the Observation. - `code`, `category` or any of the composite parameters that include `code`. Any other valid Observation search parameters can also be provided. This operation accepts an additional query parameter `max`, which specifies N, the maximum number of Observations to return from each group, with a default of 1. Searches with over 1000 results are rejected. Results are counted before grouping and limiting the results with `max`. To stay within the limit, constrain these searches using Observation search parameters such as `_lastUpdated` or `date`. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
+ "description": "Retrieves the N most recent `Observation` resources for a subject matching search criteria specified as query parameters, grouped by `Observation.code`, sorted from most recent to oldest. Implements the FHIR extended operation Observation-lastn ([STU3](https://hl7.org/fhir/STU3/observation-operations.html#lastn), [R4](https://hl7.org/fhir/R4/observation-operation-lastn.html)). DSTU2 doesn't define the Observation-lastn method, but the server supports it the same way it supports STU3. Search terms are provided as query parameters following the same pattern as the search method. The following search parameters must be provided: - `subject` or `patient` to specify a subject for the Observation. - `code`, `category` or any of the composite parameters that include `code`. Any other valid Observation search parameters can also be provided. This operation accepts an additional query parameter `max`, which specifies N, the maximum number of Observations to return from each group, with a default of 1. Searches with over 1000 results are rejected. Results are counted before grouping and limiting the results with `max`. To stay within the limit, constrain these searches using Observation search parameters such as `_lastUpdated` or `date`. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Observation/$lastn",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn",
@@ -4484,7 +4484,7 @@
]
},
"Patient-everything": {
- "description": "Retrieves a Patient resource and resources related to that patient. Implements the FHIR extended operation Patient-everything ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything), [STU3](https://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything), [R4](https://hl7.org/implement/standards/fhir/R4/patient-operations.html#everything)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The patient resource itself. * All the resources directly referenced by the patient resource. * Resources directly referencing the patient resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the patient compartment definition ([DSTU2](https://hl7.org/fhir/DSTU2/compartment-patient.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), [R4](https://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details the eligible resource types and referencing search parameters. For samples that show how to call `Patient-everything`, see [Getting all patient compartment resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_all_patient_compartment_resources).",
+ "description": "Retrieves a Patient resource and resources related to that patient. Implements the FHIR extended operation Patient-everything ([DSTU2](https://hl7.org/fhir/DSTU2/patient-operations.html#everything), [STU3](https://hl7.org/fhir/STU3/patient-operations.html#everything), [R4](https://hl7.org/fhir/R4/patient-operation-everything.html)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the operation. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The resources in scope for the response are: * The patient resource itself. * All the resources directly referenced by the patient resource. * Resources directly referencing the patient resource that meet the inclusion criteria. The inclusion criteria are based on the membership rules in the patient compartment definition ([DSTU2](https://hl7.org/fhir/DSTU2/compartment-patient.html), [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), [R4](https://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details the eligible resource types and referencing search parameters. For samples that show how to call `Patient-everything`, see [Getting all patient compartment resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_all_patient_compartment_resources).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Patient/{PatientId}/$everything",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything",
@@ -4619,7 +4619,7 @@
]
},
"Resource-validate": {
- "description": "Validates an input FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The `Parameters` input syntax is not supported. The `profile` query parameter can be used to request that the resource only be validated against a specific profile. If a profile with the given URL cannot be found in the FHIR store then an error is returned. Errors generated by validation contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
+ "description": "Validates an input FHIR resource's conformance to its profiles and the profiles configured on the FHIR store. Implements the FHIR extended operation $validate ([DSTU2](https://hl7.org/fhir/DSTU2/resource-operations.html#validate), [STU3](https://hl7.org/fhir/STU3/resource-operations.html#validate), or [R4](https://hl7.org/fhir/R4/resource-operation-validate.html)). The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The `Parameters` input syntax is not supported. The `profile` query parameter can be used to request that the resource only be validated against a specific profile. If a profile with the given URL cannot be found in the FHIR store then an error is returned. Errors generated by validation contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/$validate",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-validate",
@@ -4641,7 +4641,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), or [R4](http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), or [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4702,7 +4702,7 @@
]
},
"capabilities": {
- "description": "Gets the FHIR capability statement ([STU3](https://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), [R4](https://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or the [conformance statement](https://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or the [conformance interaction](https://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.",
+ "description": "Gets the FHIR capability statement ([STU3](https://hl7.org/fhir/STU3/capabilitystatement.html), [R4](https://hl7.org/fhir/R4/capabilitystatement.html)), or the [conformance statement](https://hl7.org/fhir/DSTU2/conformance.html) in the DSTU2 case for the store, which contains a description of functionality supported by the server. Implements the FHIR standard capabilities interaction ([STU3](https://hl7.org/fhir/STU3/http.html#capabilities), [R4](https://hl7.org/fhir/R4/http.html#capabilities)), or the [conformance interaction](https://hl7.org/fhir/DSTU2/http.html#conformance) in the DSTU2 case. On success, the response body contains a JSON-encoded representation of a `CapabilityStatement` resource.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/metadata",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities",
@@ -4728,7 +4728,7 @@
]
},
"conditionalDelete": {
- "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).",
+ "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "DELETE",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete",
@@ -4745,7 +4745,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to delete, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Required. The FHIR resource type to delete, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4762,7 +4762,7 @@
]
},
"conditionalPatch": {
- "description": "If a resource is found based on the search criteria specified in the query parameters, updates part of that resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard conditional patch interaction ([STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#patch), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2 doesn't define a conditional patch method, but the server supports it in the same way it supports STU3. Search terms are provided as query parameters following the same pattern as the search method. If the search criteria identify more than one match, the request returns a `412 Precondition Failed` error. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method requires the`healthcare.fhirStores.searchResources` permission on the parent FHIR store and the `healthcare.fhirResources.patch` permission on the requested FHIR store resource. For samples that show how to call `conditionalPatch`, see [Conditionally patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_patching_a_fhir_resource).",
+ "description": "If a resource is found based on the search criteria specified in the query parameters, updates part of that resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard conditional patch interaction ([STU3](https://hl7.org/fhir/STU3/http.html#patch), [R4](https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a conditional patch method, but the server supports it in the same way it supports STU3. Search terms are provided as query parameters following the same pattern as the search method. If the search criteria identify more than one match, the request returns a `412 Precondition Failed` error. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method requires the`healthcare.fhirStores.searchResources` permission on the parent FHIR store and the `healthcare.fhirResources.patch` permission on the requested FHIR store resource. For samples that show how to call `conditionalPatch`, see [Conditionally patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_patching_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "PATCH",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch",
@@ -4779,7 +4779,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4799,7 +4799,7 @@
]
},
"conditionalUpdate": {
- "description": "If a resource is found based on the search criteria specified in the query parameters, updates the entire contents of that resource. Implements the FHIR standard conditional update interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#cond-update), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#cond-update)). Search terms are provided as query parameters following the same pattern as the search method. If the search criteria identify more than one match, the request returns a `412 Precondition Failed` error. If the search criteria identify zero matches, and the supplied resource body contains an `id`, and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. If the search criteria identify zero matches, and the supplied resource body does not contain an `id`, the resource is created with a server-assigned ID as per the create method. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.update` permissions on the parent FHIR store. For samples that show how to call `conditionalUpdate`, see [Conditionally updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_updating_a_fhir_resource).",
+ "description": "If a resource is found based on the search criteria specified in the query parameters, updates the entire contents of that resource. Implements the FHIR standard conditional update interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.10.2), [STU3](https://hl7.org/fhir/STU3/http.html#cond-update), [R4](https://hl7.org/fhir/R4/http.html#cond-update)). Search terms are provided as query parameters following the same pattern as the search method. If the search criteria identify more than one match, the request returns a `412 Precondition Failed` error. If the search criteria identify zero matches, and the supplied resource body contains an `id`, and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. If the search criteria identify zero matches, and the supplied resource body does not contain an `id`, the resource is created with a server-assigned ID as per the create method. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.update` permissions on the parent FHIR store. For samples that show how to call `conditionalUpdate`, see [Conditionally updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_updating_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "PUT",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate",
@@ -4816,7 +4816,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4836,7 +4836,7 @@
]
},
"create": {
- "description": "Creates a FHIR resource. Implements the FHIR standard create interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#create), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#create), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#create)), which creates a new resource with a server-assigned resource ID. Also supports the FHIR standard conditional create interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#ccreate)), specified by supplying an `If-None-Exist` header containing a FHIR search query. If no resources match this search query, the server processes the create operation as normal. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the resource as it was created on the server, including the server-assigned resource ID and version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `create`, see [Creating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).",
+ "description": "Creates a FHIR resource. Implements the FHIR standard create interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#create), [STU3](https://hl7.org/fhir/STU3/http.html#create), [R4](https://hl7.org/fhir/R4/http.html#create)), which creates a new resource with a server-assigned resource ID. Also supports the FHIR standard conditional create interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#ccreate), [STU3](https://hl7.org/fhir/STU3/http.html#ccreate), [R4](https://hl7.org/fhir/R4/http.html#ccreate)), specified by supplying an `If-None-Exist` header containing a FHIR search query. If no resources match this search query, the server processes the create operation as normal. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. On success, the response body contains a JSON-encoded representation of the resource as it was created on the server, including the server-assigned resource ID and version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `create`, see [Creating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.create",
@@ -4853,7 +4853,7 @@
"type": "string"
},
"type": {
- "description": "Required. The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
+ "description": "Required. The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type in the provided content.",
"location": "path",
"pattern": "^[^/]+$",
"required": true,
@@ -4873,7 +4873,7 @@
]
},
"delete": {
- "description": "Deletes a FHIR resource. Implements the FHIR standard delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#delete), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#delete)). Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. For samples that show how to call `delete`, see [Deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).",
+ "description": "Deletes a FHIR resource. Implements the FHIR standard delete interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#delete), [STU3](https://hl7.org/fhir/STU3/http.html#delete), [R4](https://hl7.org/fhir/R4/http.html#delete)). Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. For samples that show how to call `delete`, see [Deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "DELETE",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.delete",
@@ -4899,7 +4899,7 @@
]
},
"executeBundle": {
- "description": "Executes all the requests in the given Bundle. Implements the FHIR standard batch/transaction interaction and history operations. ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#transaction), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#transaction)). Supports all interactions within a bundle, except search. This method accepts Bundles of type `batch`, `transaction` and `history`, processing `batch` and `transaction` bundles according to the batch processing rules ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#brules)) and transaction processing rules ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#trules)). The request body must contain a JSON-encoded FHIR `Bundle` resource, and the request headers must contain `Content-Type: application/fhir+json`. For a batch bundle or a successful transaction, the response body contains a JSON-encoded representation of a `Bundle` resource of type `batch-response` or `transaction-response` containing one entry for each entry in the request, with the outcome of processing the entry. In the case of an error for a `transaction` or `history` bundle, the response body contains a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method checks permissions for each request in the bundle. The `executeBundle` permission is required to call this method, but you must also grant sufficient permissions to execute the individual requests in the bundle. For example, if the bundle contains a request to create a FHIR resource, the caller must also have been granted the `healthcare.fhirResources.create` permission. `history` bundles also check the `import` permission. You can use audit logs to view the permissions for `executeBundle` and each request in the bundle. For more information, see [Viewing Cloud Audit logs](https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For samples that show how to call `executeBundle`, see [Managing FHIR resources using FHIR bundles](https://cloud.google.com/healthcare/docs/how-tos/fhir-bundles).",
+ "description": "Executes all the requests in the given Bundle. Implements the FHIR standard batch/transaction interaction and history operations. ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#transaction), [STU3](https://hl7.org/fhir/STU3/http.html#transaction), [R4](https://hl7.org/fhir/R4/http.html#transaction)). Supports all interactions within a bundle, except search. This method accepts Bundles of type `batch`, `transaction` and `history`, processing `batch` and `transaction` bundles according to the batch processing rules ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.1), [STU3](https://hl7.org/fhir/STU3/http.html#2.21.0.17.1), [R4](https://hl7.org/fhir/R4/http.html#brules)) and transaction processing rules ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.2), [STU3](https://hl7.org/fhir/STU3/http.html#2.21.0.17.2), [R4](https://hl7.org/fhir/R4/http.html#trules)). The request body must contain a JSON-encoded FHIR `Bundle` resource, and the request headers must contain `Content-Type: application/fhir+json`. For a batch bundle or a successful transaction, the response body contains a JSON-encoded representation of a `Bundle` resource of type `batch-response` or `transaction-response` containing one entry for each entry in the request, with the outcome of processing the entry. In the case of an error for a `transaction` or `history` bundle, the response body contains a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. This method checks permissions for each request in the bundle. The `executeBundle` permission is required to call this method, but you must also grant sufficient permissions to execute the individual requests in the bundle. For example, if the bundle contains a request to create a FHIR resource, the caller must also have been granted the `healthcare.fhirResources.create` permission. `history` bundles also check the `import` permission. You can use audit logs to view the permissions for `executeBundle` and each request in the bundle. For more information, see [Viewing Cloud Audit logs](https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For samples that show how to call `executeBundle`, see [Managing FHIR resources using FHIR bundles](https://cloud.google.com/healthcare/docs/how-tos/fhir-bundles).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle",
@@ -4928,7 +4928,7 @@
]
},
"history": {
- "description": "Lists all the versions of a resource (including the current version and deleted versions) from the FHIR store. Implements the per-resource form of the FHIR standard history interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#history), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#history), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#history)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `history`, containing the version history sorted from most recent to oldest versions. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `history`, see [Listing FHIR resource versions](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).",
+ "description": "Lists all the versions of a resource (including the current version and deleted versions) from the FHIR store. Implements the per-resource form of the FHIR standard history interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#history), [STU3](https://hl7.org/fhir/STU3/http.html#history), [R4](https://hl7.org/fhir/R4/http.html#history)). On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `history`, containing the version history sorted from most recent to oldest versions. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `history`, see [Listing FHIR resource versions](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.history",
@@ -4975,7 +4975,7 @@
]
},
"patch": {
- "description": "Updates part of an existing resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard patch interaction ([STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#patch), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch method, but the server supports it in the same way it supports STU3. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `patch`, see [Patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).",
+ "description": "Updates part of an existing resource by applying the operations specified in a [JSON Patch](http://jsonpatch.com/) document. Implements the FHIR standard patch interaction ([STU3](https://hl7.org/fhir/STU3/http.html#patch), [R4](https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch method, but the server supports it in the same way it supports STU3. The request body must contain a JSON Patch document, and the request headers must contain `Content-Type: application/json-patch+json`. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `patch`, see [Patching a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "PATCH",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.patch",
@@ -5004,7 +5004,7 @@
]
},
"read": {
- "description": "Gets the contents of a FHIR resource. Implements the FHIR standard read interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#read), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#read), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#read)). Also supports the FHIR standard conditional read interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#cread), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#cread)) specified by supplying an `If-Modified-Since` header with a date/time value or an `If-None-Match` header with an ETag value. On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `read`, see [Getting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).",
+ "description": "Gets the contents of a FHIR resource. Implements the FHIR standard read interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#read), [STU3](https://hl7.org/fhir/STU3/http.html#read), [R4](https://hl7.org/fhir/R4/http.html#read)). Also supports the FHIR standard conditional read interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#cread), [STU3](https://hl7.org/fhir/STU3/http.html#cread), [R4](https://hl7.org/fhir/R4/http.html#cread)) specified by supplying an `If-Modified-Since` header with a date/time value or an `If-None-Match` header with an ETag value. On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `read`, see [Getting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.read",
@@ -5030,7 +5030,7 @@
]
},
"search": {
- "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
+ "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.search",
@@ -5059,7 +5059,7 @@
]
},
"search-type": {
- "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
+ "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search",
"httpMethod": "POST",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type",
@@ -5076,7 +5076,7 @@
"type": "string"
},
"resourceType": {
- "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"location": "path",
"required": true,
"type": "string"
@@ -5095,7 +5095,7 @@
]
},
"update": {
- "description": "Updates the entire contents of a resource. Implements the FHIR standard update interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#update), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#update), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#update)). If the specified resource does not exist and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The resource must contain an `id` element having an identical value to the ID in the REST path of the request. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `update`, see [Updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).",
+ "description": "Updates the entire contents of a resource. Implements the FHIR standard update interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#update), [STU3](https://hl7.org/fhir/STU3/http.html#update), [R4](https://hl7.org/fhir/R4/http.html#update)). If the specified resource does not exist and the FHIR store has enable_update_create set, creates the resource with the client-specified ID. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain `Content-Type: application/fhir+json`. The resource must contain an `id` element having an identical value to the ID in the REST path of the request. On success, the response body contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `update`, see [Updating a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
"httpMethod": "PUT",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.update",
@@ -5124,7 +5124,7 @@
]
},
"vread": {
- "description": "Gets the contents of a version (current or historical) of a FHIR resource by version ID. Implements the FHIR standard vread interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#vread), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#vread)). On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `vread`, see [Retrieving a FHIR resource version](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).",
+ "description": "Gets the contents of a version (current or historical) of a FHIR resource by version ID. Implements the FHIR standard vread interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#vread), [STU3](https://hl7.org/fhir/STU3/http.html#vread), [R4](https://hl7.org/fhir/R4/http.html#vread)). On success, the response body contains a JSON-encoded representation of the resource. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call `vread`, see [Retrieving a FHIR resource version](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history/{_historyId}",
"httpMethod": "GET",
"id": "healthcare.projects.locations.datasets.fhirStores.fhir.vread",
@@ -6017,7 +6017,7 @@
}
}
},
- "revision": "20250409",
+ "revision": "20250430",
"rootUrl": "https://healthcare.googleapis.com/",
"schemas": {
"AccessDeterminationLogConfig": {
@@ -10278,7 +10278,7 @@
"id": "SearchResourcesRequest",
"properties": {
"resourceType": {
- "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).",
+ "description": "Optional. The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/fhir/STU3/resourcelist.html), [R4](https://hl7.org/fhir/R4/resourcelist.html)).",
"type": "string"
}
},
diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go
index c0036a0..ee1e9fc 100644
--- a/healthcare/v1beta1/healthcare-gen.go
+++ b/healthcare/v1beta1/healthcare-gen.go
@@ -7115,9 +7115,9 @@
type SearchResourcesRequest struct {
// ResourceType: Optional. The FHIR resource type to search, such as Patient or
// Observation. For a complete list, see the FHIR Resource Index (DSTU2
- // (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
- // (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
- // (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+ // (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+ // (https://hl7.org/fhir/STU3/resourcelist.html), R4
+ // (https://hl7.org/fhir/R4/resourcelist.html)).
ResourceType string `json:"resourceType,omitempty"`
// ForceSendFields is a list of field names (e.g. "ResourceType") to
// unconditionally include in API requests. By default, fields with empty or
@@ -22916,22 +22916,20 @@
// EncounterEverything: Retrieves an Encounter resource and resources related
// to that Encounter. Implements the FHIR extended operation
// Encounter-everything (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/encounter-operations.html#everything),
-// STU3
-// (http://hl7.org/implement/standards/fhir/STU3/encounter-operations.html#everything),
-// or R4
-// (https://hl7.org/implement/standards/fhir/R4/encounter-operation-everything.html).
-// On success, the response body contains a JSON-encoded representation of a
-// `Bundle` resource of type `searchset`, containing the results of the
-// operation. Errors generated by the FHIR store contain a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead. The resources in scope for the response
-// are: * The Encounter resource itself. * All the resources directly
-// referenced by the Encounter resource, including attachments and binaries. *
-// Resources directly referencing the Encounter resource that meet the
-// inclusion criteria. The inclusion criteria are based on the membership rules
-// in the Encounter Compartment definition (DSTU2
+// (https://hl7.org/fhir/DSTU2/encounter-operations.html#everything), STU3
+// (https://hl7.org/fhir/STU3/encounter-operations.html#everything), or R4
+// (https://hl7.org/fhir/R4/encounter-operation-everything.html). On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the operation.
+// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The resources in scope for the response are: * The
+// Encounter resource itself. * All the resources directly referenced by the
+// Encounter resource, including attachments and binaries. * Resources directly
+// referencing the Encounter resource that meet the inclusion criteria. The
+// inclusion criteria are based on the membership rules in the Encounter
+// Compartment definition (DSTU2
// (http://hl7.org/fhir/DSTU2/compartment-encounter.html), STU3
// (http://www.hl7.org/fhir/stu3/compartmentdefinition-encounter.html), R4
// (http://hl7.org/fhir/R4/compartmentdefinition-encounter.html)), which
@@ -23057,27 +23055,25 @@
// subject matching search criteria specified as query parameters, grouped by
// `Observation.code`, sorted from most recent to oldest. Implements the FHIR
// extended operation Observation-lastn (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn),
-// R4
-// (https://hl7.org/implement/standards/fhir/R4/observation-operations.html#lastn)).
-// DSTU2 doesn't define the Observation-lastn method, but the server supports
-// it the same way it supports STU3. Search terms are provided as query
-// parameters following the same pattern as the search method. The following
-// search parameters must be provided: - `subject` or `patient` to specify a
-// subject for the Observation. - `code`, `category` or any of the composite
-// parameters that include `code`. Any other valid Observation search
-// parameters can also be provided. This operation accepts an additional query
-// parameter `max`, which specifies N, the maximum number of Observations to
-// return from each group, with a default of 1. Searches with over 1000 results
-// are rejected. Results are counted before grouping and limiting the results
-// with `max`. To stay within the limit, constrain these searches using
-// Observation search parameters such as `_lastUpdated` or `date`. On success,
-// the response body contains a JSON-encoded representation of a `Bundle`
-// resource of type `searchset`, containing the results of the operation.
-// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
-// resource describing the reason for the error. If the request cannot be
-// mapped to a valid API method on a FHIR store, a generic GCP error might be
-// returned instead.
+// (https://hl7.org/fhir/STU3/observation-operations.html#lastn), R4
+// (https://hl7.org/fhir/R4/observation-operation-lastn.html)). DSTU2 doesn't
+// define the Observation-lastn method, but the server supports it the same way
+// it supports STU3. Search terms are provided as query parameters following
+// the same pattern as the search method. The following search parameters must
+// be provided: - `subject` or `patient` to specify a subject for the
+// Observation. - `code`, `category` or any of the composite parameters that
+// include `code`. Any other valid Observation search parameters can also be
+// provided. This operation accepts an additional query parameter `max`, which
+// specifies N, the maximum number of Observations to return from each group,
+// with a default of 1. Searches with over 1000 results are rejected. Results
+// are counted before grouping and limiting the results with `max`. To stay
+// within the limit, constrain these searches using Observation search
+// parameters such as `_lastUpdated` or `date`. On success, the response body
+// contains a JSON-encoded representation of a `Bundle` resource of type
+// `searchset`, containing the results of the operation. Errors generated by
+// the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
+// the reason for the error. If the request cannot be mapped to a valid API
+// method on a FHIR store, a generic GCP error might be returned instead.
//
// - parent: Name of the FHIR store to retrieve resources from.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
@@ -23256,22 +23252,19 @@
// PatientEverything: Retrieves a Patient resource and resources related to
// that patient. Implements the FHIR extended operation Patient-everything
-// (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything),
-// STU3
-// (https://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything),
-// R4
-// (https://hl7.org/implement/standards/fhir/R4/patient-operations.html#everything)).
-// On success, the response body contains a JSON-encoded representation of a
-// `Bundle` resource of type `searchset`, containing the results of the
-// operation. Errors generated by the FHIR store contain a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead. The resources in scope for the response
-// are: * The patient resource itself. * All the resources directly referenced
-// by the patient resource. * Resources directly referencing the patient
-// resource that meet the inclusion criteria. The inclusion criteria are based
-// on the membership rules in the patient compartment definition (DSTU2
+// (DSTU2 (https://hl7.org/fhir/DSTU2/patient-operations.html#everything), STU3
+// (https://hl7.org/fhir/STU3/patient-operations.html#everything), R4
+// (https://hl7.org/fhir/R4/patient-operation-everything.html)). On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the operation.
+// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The resources in scope for the response are: * The patient
+// resource itself. * All the resources directly referenced by the patient
+// resource. * Resources directly referencing the patient resource that meet
+// the inclusion criteria. The inclusion criteria are based on the membership
+// rules in the patient compartment definition (DSTU2
// (https://hl7.org/fhir/DSTU2/compartment-patient.html), STU3
// (http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), R4
// (https://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details
@@ -23644,29 +23637,27 @@
// ResourceValidate: Validates an input FHIR resource's conformance to its
// profiles and the profiles configured on the FHIR store. Implements the FHIR
// extended operation $validate (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate),
-// STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate),
-// or R4
-// (http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)).
-// The request body must contain a JSON-encoded FHIR resource, and the request
-// headers must contain `Content-Type: application/fhir+json`. The `Parameters`
-// input syntax is not supported. The `profile` query parameter can be used to
-// request that the resource only be validated against a specific profile. If a
-// profile with the given URL cannot be found in the FHIR store then an error
-// is returned. Errors generated by validation contain a JSON-encoded
-// `OperationOutcome` resource describing the reason for the error. If the
-// request cannot be mapped to a valid API method on a FHIR store, a generic
-// GCP error might be returned instead.
+// (https://hl7.org/fhir/DSTU2/resource-operations.html#validate), STU3
+// (https://hl7.org/fhir/STU3/resource-operations.html#validate), or R4
+// (https://hl7.org/fhir/R4/resource-operation-validate.html)). The request
+// body must contain a JSON-encoded FHIR resource, and the request headers must
+// contain `Content-Type: application/fhir+json`. The `Parameters` input syntax
+// is not supported. The `profile` query parameter can be used to request that
+// the resource only be validated against a specific profile. If a profile with
+// the given URL cannot be found in the FHIR store then an error is returned.
+// Errors generated by validation contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead.
//
// - parent: The name of the FHIR store that holds the profiles being used for
// validation.
// - type: The FHIR resource type of the resource being validated. For a
// complete list, see the FHIR Resource Index (DSTU2
-// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), or R4
-// (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), or R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceValidate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -23877,19 +23868,16 @@
}
// Capabilities: Gets the FHIR capability statement (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or
-// the conformance statement
-// (https://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the
-// DSTU2 case for the store, which contains a description of functionality
-// supported by the server. Implements the FHIR standard capabilities
-// interaction (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or
-// the conformance interaction
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in
-// the DSTU2 case. On success, the response body contains a JSON-encoded
-// representation of a `CapabilityStatement` resource.
+// (https://hl7.org/fhir/STU3/capabilitystatement.html), R4
+// (https://hl7.org/fhir/R4/capabilitystatement.html)), or the conformance
+// statement (https://hl7.org/fhir/DSTU2/conformance.html) in the DSTU2 case
+// for the store, which contains a description of functionality supported by
+// the server. Implements the FHIR standard capabilities interaction (STU3
+// (https://hl7.org/fhir/STU3/http.html#capabilities), R4
+// (https://hl7.org/fhir/R4/http.html#capabilities)), or the conformance
+// interaction (https://hl7.org/fhir/DSTU2/http.html#conformance) in the DSTU2
+// case. On success, the response body contains a JSON-encoded representation
+// of a `CapabilityStatement` resource.
//
// - name: Name of the FHIR store to retrieve the capabilities for.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
@@ -23967,22 +23955,21 @@
// ConditionalDelete: Deletes FHIR resources that match a search query.
// Implements the FHIR standard conditional delete interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If
-// multiple resources match, all matching resources are deleted. Search terms
-// are provided as query parameters following the same pattern as the search
-// method. Not all FHIR resources that match the search query might be deleted
-// because, by default, a maximum of 100 FHIR resources can be deleted. The
-// number of FHIR resources that can be deleted depends on the page size of the
-// returned resources, which you can control using the `_count` query
-// parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR
-// resources per each call of `conditionalDelete`. Note: Unless resource
-// versioning is disabled by setting the disable_resource_versioning flag on
-// the FHIR store, the deleted resources are moved to a history repository that
-// can still be retrieved through vread and related methods, unless they are
-// removed by the purge method. This method requires
-// the`healthcare.fhirStores.searchResources` and
+// (https://hl7.org/fhir/DSTU2/http.html#2.1.0.12.1), STU3
+// (https://hl7.org/fhir/STU3/http.html#2.21.0.13.1), R4
+// (https://hl7.org/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match,
+// all matching resources are deleted. Search terms are provided as query
+// parameters following the same pattern as the search method. Not all FHIR
+// resources that match the search query might be deleted because, by default,
+// a maximum of 100 FHIR resources can be deleted. The number of FHIR resources
+// that can be deleted depends on the page size of the returned resources,
+// which you can control using the `_count` query parameter. Even when using
+// `_count`, you can delete a maximum 1,000 FHIR resources per each call of
+// `conditionalDelete`. Note: Unless resource versioning is disabled by setting
+// the disable_resource_versioning flag on the FHIR store, the deleted
+// resources are moved to a history repository that can still be retrieved
+// through vread and related methods, unless they are removed by the purge
+// method. This method requires the`healthcare.fhirStores.searchResources` and
// `healthcare.fhirResources.delete` permissions on the parent FHIR store. For
// samples that show how to call `conditionalDelete`, see Conditionally
// deleting a FHIR resource
@@ -23991,9 +23978,9 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to delete, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -24096,31 +24083,31 @@
// specified in the query parameters, updates part of that resource by applying
// the operations specified in a JSON Patch (http://jsonpatch.com/) document.
// Implements the FHIR standard conditional patch interaction (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#patch), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2
-// doesn't define a conditional patch method, but the server supports it in the
-// same way it supports STU3. Search terms are provided as query parameters
-// following the same pattern as the search method. If the search criteria
-// identify more than one match, the request returns a `412 Precondition
-// Failed` error. The request body must contain a JSON Patch document, and the
-// request headers must contain `Content-Type: application/json-patch+json`. On
-// success, the response body contains a JSON-encoded representation of the
-// updated resource, including the server-assigned version ID. Errors generated
-// by the FHIR store contain a JSON-encoded `OperationOutcome` resource
-// describing the reason for the error. If the request cannot be mapped to a
-// valid API method on a FHIR store, a generic GCP error might be returned
-// instead. This method requires the`healthcare.fhirStores.searchResources`
-// permission on the parent FHIR store and the `healthcare.fhirResources.patch`
-// permission on the requested FHIR store resource. For samples that show how
-// to call `conditionalPatch`, see Conditionally patching a FHIR resource
+// (https://hl7.org/fhir/STU3/http.html#patch), R4
+// (https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a
+// conditional patch method, but the server supports it in the same way it
+// supports STU3. Search terms are provided as query parameters following the
+// same pattern as the search method. If the search criteria identify more than
+// one match, the request returns a `412 Precondition Failed` error. The
+// request body must contain a JSON Patch document, and the request headers
+// must contain `Content-Type: application/json-patch+json`. On success, the
+// response body contains a JSON-encoded representation of the updated
+// resource, including the server-assigned version ID. Errors generated by the
+// FHIR store contain a JSON-encoded `OperationOutcome` resource describing the
+// reason for the error. If the request cannot be mapped to a valid API method
+// on a FHIR store, a generic GCP error might be returned instead. This method
+// requires the`healthcare.fhirStores.searchResources` permission on the parent
+// FHIR store and the `healthcare.fhirResources.patch` permission on the
+// requested FHIR store resource. For samples that show how to call
+// `conditionalPatch`, see Conditionally patching a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_patching_a_fhir_resource).
//
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to update, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -24193,23 +24180,23 @@
// ConditionalUpdate: If a resource is found based on the search criteria
// specified in the query parameters, updates the entire contents of that
// resource. Implements the FHIR standard conditional update interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#cond-update), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#cond-update)). Search
-// terms are provided as query parameters following the same pattern as the
-// search method. If the search criteria identify more than one match, the
-// request returns a `412 Precondition Failed` error. If the search criteria
-// identify zero matches, and the supplied resource body contains an `id`, and
-// the FHIR store has enable_update_create set, creates the resource with the
-// client-specified ID. It is strongly advised not to include or encode any
-// sensitive data such as patient identifiers in client-specified resource IDs.
-// Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs
-// and Pub/Sub notifications. Those IDs can also be contained in reference
-// fields within other resources. If the search criteria identify zero matches,
-// and the supplied resource body does not contain an `id`, the resource is
-// created with a server-assigned ID as per the create method. The request body
-// must contain a JSON-encoded FHIR resource, and the request headers must
-// contain `Content-Type: application/fhir+json`. On success, the response body
+// (https://hl7.org/fhir/DSTU2/http.html#2.1.0.10.2), STU3
+// (https://hl7.org/fhir/STU3/http.html#cond-update), R4
+// (https://hl7.org/fhir/R4/http.html#cond-update)). Search terms are provided
+// as query parameters following the same pattern as the search method. If the
+// search criteria identify more than one match, the request returns a `412
+// Precondition Failed` error. If the search criteria identify zero matches,
+// and the supplied resource body contains an `id`, and the FHIR store has
+// enable_update_create set, creates the resource with the client-specified ID.
+// It is strongly advised not to include or encode any sensitive data such as
+// patient identifiers in client-specified resource IDs. Those IDs are part of
+// the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub
+// notifications. Those IDs can also be contained in reference fields within
+// other resources. If the search criteria identify zero matches, and the
+// supplied resource body does not contain an `id`, the resource is created
+// with a server-assigned ID as per the create method. The request body must
+// contain a JSON-encoded FHIR resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. On success, the response body
// contains a JSON-encoded representation of the updated resource, including
// the server-assigned version ID. Errors generated by the FHIR store contain a
// JSON-encoded `OperationOutcome` resource describing the reason for the
@@ -24224,10 +24211,10 @@
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to update, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -24298,35 +24285,34 @@
}
// Create: Creates a FHIR resource. Implements the FHIR standard create
-// interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#create), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#create), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#create)), which
-// creates a new resource with a server-assigned resource ID. Also supports the
-// FHIR standard conditional create interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#ccreate)), specified
-// by supplying an `If-None-Exist` header containing a FHIR search query. If no
-// resources match this search query, the server processes the create operation
-// as normal. The request body must contain a JSON-encoded FHIR resource, and
-// the request headers must contain `Content-Type: application/fhir+json`. On
-// success, the response body contains a JSON-encoded representation of the
-// resource as it was created on the server, including the server-assigned
-// resource ID and version ID. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. For samples that show
-// how to call `create`, see Creating a FHIR resource
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#create), STU3
+// (https://hl7.org/fhir/STU3/http.html#create), R4
+// (https://hl7.org/fhir/R4/http.html#create)), which creates a new resource
+// with a server-assigned resource ID. Also supports the FHIR standard
+// conditional create interaction (DSTU2
+// (https://hl7.org/fhir/DSTU2/http.html#ccreate), STU3
+// (https://hl7.org/fhir/STU3/http.html#ccreate), R4
+// (https://hl7.org/fhir/R4/http.html#ccreate)), specified by supplying an
+// `If-None-Exist` header containing a FHIR search query. If no resources match
+// this search query, the server processes the create operation as normal. The
+// request body must contain a JSON-encoded FHIR resource, and the request
+// headers must contain `Content-Type: application/fhir+json`. On success, the
+// response body contains a JSON-encoded representation of the resource as it
+// was created on the server, including the server-assigned resource ID and
+// version ID. Errors generated by the FHIR store contain a JSON-encoded
+// `OperationOutcome` resource describing the reason for the error. If the
+// request cannot be mapped to a valid API method on a FHIR store, a generic
+// GCP error might be returned instead. For samples that show how to call
+// `create`, see Creating a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).
//
// - parent: The name of the FHIR store this resource belongs to.
// - type: The FHIR resource type to create, such as Patient or Observation.
// For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
-// match the resource type in the provided content.
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)). Must match the resource type
+// in the provided content.
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -24395,15 +24381,14 @@
}
// Delete: Deletes a FHIR resource. Implements the FHIR standard delete
-// interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#delete), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#delete)). Note:
-// Unless resource versioning is disabled by setting the
-// disable_resource_versioning flag on the FHIR store, the deleted resources
-// are moved to a history repository that can still be retrieved through vread
-// and related methods, unless they are removed by the purge method. For
-// samples that show how to call `delete`, see Deleting a FHIR resource
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#delete), STU3
+// (https://hl7.org/fhir/STU3/http.html#delete), R4
+// (https://hl7.org/fhir/R4/http.html#delete)). Note: Unless resource
+// versioning is disabled by setting the disable_resource_versioning flag on
+// the FHIR store, the deleted resources are moved to a history repository that
+// can still be retrieved through vread and related methods, unless they are
+// removed by the purge method. For samples that show how to call `delete`, see
+// Deleting a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).
//
// - name: The name of the resource to delete.
@@ -24471,38 +24456,36 @@
// ExecuteBundle: Executes all the requests in the given Bundle. Implements the
// FHIR standard batch/transaction interaction and history operations. (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#transaction), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#transaction)).
-// Supports all interactions within a bundle, except search. This method
-// accepts Bundles of type `batch`, `transaction` and `history`, processing
-// `batch` and `transaction` bundles according to the batch processing rules
-// (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#brules)) and
-// transaction processing rules (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#trules)). The request
-// body must contain a JSON-encoded FHIR `Bundle` resource, and the request
-// headers must contain `Content-Type: application/fhir+json`. For a batch
-// bundle or a successful transaction, the response body contains a
-// JSON-encoded representation of a `Bundle` resource of type `batch-response`
-// or `transaction-response` containing one entry for each entry in the
-// request, with the outcome of processing the entry. In the case of an error
-// for a `transaction` or `history` bundle, the response body contains a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. This method checks
-// permissions for each request in the bundle. The `executeBundle` permission
-// is required to call this method, but you must also grant sufficient
-// permissions to execute the individual requests in the bundle. For example,
-// if the bundle contains a request to create a FHIR resource, the caller must
-// also have been granted the `healthcare.fhirResources.create` permission.
-// `history` bundles also check the `import` permission. You can use audit logs
-// to view the permissions for `executeBundle` and each request in the bundle.
-// For more information, see Viewing Cloud Audit logs
+// (https://hl7.org/fhir/DSTU2/http.html#transaction), STU3
+// (https://hl7.org/fhir/STU3/http.html#transaction), R4
+// (https://hl7.org/fhir/R4/http.html#transaction)). Supports all interactions
+// within a bundle, except search. This method accepts Bundles of type `batch`,
+// `transaction` and `history`, processing `batch` and `transaction` bundles
+// according to the batch processing rules (DSTU2
+// (https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.1), STU3
+// (https://hl7.org/fhir/STU3/http.html#2.21.0.17.1), R4
+// (https://hl7.org/fhir/R4/http.html#brules)) and transaction processing rules
+// (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#2.1.0.16.2), STU3
+// (https://hl7.org/fhir/STU3/http.html#2.21.0.17.2), R4
+// (https://hl7.org/fhir/R4/http.html#trules)). The request body must contain a
+// JSON-encoded FHIR `Bundle` resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. For a batch bundle or a successful
+// transaction, the response body contains a JSON-encoded representation of a
+// `Bundle` resource of type `batch-response` or `transaction-response`
+// containing one entry for each entry in the request, with the outcome of
+// processing the entry. In the case of an error for a `transaction` or
+// `history` bundle, the response body contains a JSON-encoded
+// `OperationOutcome` resource describing the reason for the error. If the
+// request cannot be mapped to a valid API method on a FHIR store, a generic
+// GCP error might be returned instead. This method checks permissions for each
+// request in the bundle. The `executeBundle` permission is required to call
+// this method, but you must also grant sufficient permissions to execute the
+// individual requests in the bundle. For example, if the bundle contains a
+// request to create a FHIR resource, the caller must also have been granted
+// the `healthcare.fhirResources.create` permission. `history` bundles also
+// check the `import` permission. You can use audit logs to view the
+// permissions for `executeBundle` and each request in the bundle. For more
+// information, see Viewing Cloud Audit logs
// (https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For
// samples that show how to call `executeBundle`, see Managing FHIR resources
// using FHIR bundles
@@ -24578,16 +24561,16 @@
// History: Lists all the versions of a resource (including the current version
// and deleted versions) from the FHIR store. Implements the per-resource form
// of the FHIR standard history interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#history), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#history), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#history)). On
-// success, the response body contains a JSON-encoded representation of a
-// `Bundle` resource of type `history`, containing the version history sorted
-// from most recent to oldest versions. Errors generated by the FHIR store
-// contain a JSON-encoded `OperationOutcome` resource describing the reason for
-// the error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. For samples that show
-// how to call `history`, see Listing FHIR resource versions
+// (https://hl7.org/fhir/DSTU2/http.html#history), STU3
+// (https://hl7.org/fhir/STU3/http.html#history), R4
+// (https://hl7.org/fhir/R4/http.html#history)). On success, the response body
+// contains a JSON-encoded representation of a `Bundle` resource of type
+// `history`, containing the version history sorted from most recent to oldest
+// versions. Errors generated by the FHIR store contain a JSON-encoded
+// `OperationOutcome` resource describing the reason for the error. If the
+// request cannot be mapped to a valid API method on a FHIR store, a generic
+// GCP error might be returned instead. For samples that show how to call
+// `history`, see Listing FHIR resource versions
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).
//
// - name: The name of the resource to retrieve.
@@ -24707,18 +24690,17 @@
// Patch: Updates part of an existing resource by applying the operations
// specified in a JSON Patch (http://jsonpatch.com/) document. Implements the
// FHIR standard patch interaction (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#patch), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2
-// doesn't define a patch method, but the server supports it in the same way it
-// supports STU3. The request body must contain a JSON Patch document, and the
-// request headers must contain `Content-Type: application/json-patch+json`. On
-// success, the response body contains a JSON-encoded representation of the
-// updated resource, including the server-assigned version ID. Errors generated
-// by the FHIR store contain a JSON-encoded `OperationOutcome` resource
-// describing the reason for the error. If the request cannot be mapped to a
-// valid API method on a FHIR store, a generic GCP error might be returned
-// instead. For samples that show how to call `patch`, see Patching a FHIR
-// resource
+// (https://hl7.org/fhir/STU3/http.html#patch), R4
+// (https://hl7.org/fhir/R4/http.html#patch)). DSTU2 doesn't define a patch
+// method, but the server supports it in the same way it supports STU3. The
+// request body must contain a JSON Patch document, and the request headers
+// must contain `Content-Type: application/json-patch+json`. On success, the
+// response body contains a JSON-encoded representation of the updated
+// resource, including the server-assigned version ID. Errors generated by the
+// FHIR store contain a JSON-encoded `OperationOutcome` resource describing the
+// reason for the error. If the request cannot be mapped to a valid API method
+// on a FHIR store, a generic GCP error might be returned instead. For samples
+// that show how to call `patch`, see Patching a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).
//
// - name: The name of the resource to update.
@@ -24789,21 +24771,20 @@
}
// Read: Gets the contents of a FHIR resource. Implements the FHIR standard
-// read interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#read), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#read), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#read)). Also supports
-// the FHIR standard conditional read interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#cread), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#cread)) specified by
-// supplying an `If-Modified-Since` header with a date/time value or an
-// `If-None-Match` header with an ETag value. On success, the response body
-// contains a JSON-encoded representation of the resource. Errors generated by
-// the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
-// the reason for the error. If the request cannot be mapped to a valid API
-// method on a FHIR store, a generic GCP error might be returned instead. For
-// samples that show how to call `read`, see Getting a FHIR resource
+// read interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#read), STU3
+// (https://hl7.org/fhir/STU3/http.html#read), R4
+// (https://hl7.org/fhir/R4/http.html#read)). Also supports the FHIR standard
+// conditional read interaction (DSTU2
+// (https://hl7.org/fhir/DSTU2/http.html#cread), STU3
+// (https://hl7.org/fhir/STU3/http.html#cread), R4
+// (https://hl7.org/fhir/R4/http.html#cread)) specified by supplying an
+// `If-Modified-Since` header with a date/time value or an `If-None-Match`
+// header with an ETag value. On success, the response body contains a
+// JSON-encoded representation of the resource. Errors generated by the FHIR
+// store contain a JSON-encoded `OperationOutcome` resource describing the
+// reason for the error. If the request cannot be mapped to a valid API method
+// on a FHIR store, a generic GCP error might be returned instead. For samples
+// that show how to call `read`, see Getting a FHIR resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).
//
// - name: The name of the resource to retrieve.
@@ -24882,40 +24863,37 @@
// Search: Searches for resources in the given FHIR store according to criteria
// specified as query parameters. Implements the FHIR standard search
-// interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
-// search semantics described in the FHIR Search specification (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/search.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
-// methods of search defined by the specification: * `GET [base]?[parameters]`
-// to search across all resources. * `GET [base]/[type]?[parameters]` to search
-// resources of a specified type. * `POST [base]/_search?[parameters]` as an
-// alternate form having the same semantics as the `GET` method across all
-// resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
-// having the same semantics as the `GET` method for the specified type. The
-// `GET` and `POST` methods do not support compartment searches. The `POST`
-// method does not support `application/x-www-form-urlencoded` search
-// parameters. On success, the response body contains a JSON-encoded
-// representation of a `Bundle` resource of type `searchset`, containing the
-// results of the search. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. The server's
-// capability statement, retrieved through capabilities, indicates what search
-// parameters are supported on each FHIR resource. A list of all search
-// parameters defined by the specification can be found in the FHIR Search
-// Parameter Registry (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
-// R4
-// (https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
-// FHIR search parameters for DSTU2 can be found on each resource's definition
-// page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
-// `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
-// `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
-// parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#search), STU3
+// (https://hl7.org/fhir/STU3/http.html#search), R4
+// (https://hl7.org/fhir/R4/http.html#search)) using the search semantics
+// described in the FHIR Search specification (DSTU2
+// (https://hl7.org/fhir/DSTU2/search.html), STU3
+// (https://hl7.org/fhir/STU3/search.html), R4
+// (https://hl7.org/fhir/R4/search.html)). Supports four methods of search
+// defined by the specification: * `GET [base]?[parameters]` to search across
+// all resources. * `GET [base]/[type]?[parameters]` to search resources of a
+// specified type. * `POST [base]/_search?[parameters]` as an alternate form
+// having the same semantics as the `GET` method across all resources. * `POST
+// [base]/[type]/_search?[parameters]` as an alternate form having the same
+// semantics as the `GET` method for the specified type. The `GET` and `POST`
+// methods do not support compartment searches. The `POST` method does not
+// support `application/x-www-form-urlencoded` search parameters. On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the search. Errors
+// generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The server's capability statement, retrieved through
+// capabilities, indicates what search parameters are supported on each FHIR
+// resource. A list of all search parameters defined by the specification can
+// be found in the FHIR Search Parameter Registry (STU3
+// (https://hl7.org/fhir/STU3/searchparameter-registry.html), R4
+// (https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search
+// parameters for DSTU2 can be found on each resource's definition page.
+// Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
+// `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse`
+// (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters:
+// `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
// `_summary=data`, and `_elements`. The maximum number of search results
// returned defaults to 100, which can be overridden by the `_count` parameter
// up to a maximum limit of 1000. The server might return fewer resources than
@@ -25020,40 +24998,37 @@
// SearchType: Searches for resources in the given FHIR store according to
// criteria specified as query parameters. Implements the FHIR standard search
-// interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
-// search semantics described in the FHIR Search specification (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/search.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
-// methods of search defined by the specification: * `GET [base]?[parameters]`
-// to search across all resources. * `GET [base]/[type]?[parameters]` to search
-// resources of a specified type. * `POST [base]/_search?[parameters]` as an
-// alternate form having the same semantics as the `GET` method across all
-// resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
-// having the same semantics as the `GET` method for the specified type. The
-// `GET` and `POST` methods do not support compartment searches. The `POST`
-// method does not support `application/x-www-form-urlencoded` search
-// parameters. On success, the response body contains a JSON-encoded
-// representation of a `Bundle` resource of type `searchset`, containing the
-// results of the search. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. The server's
-// capability statement, retrieved through capabilities, indicates what search
-// parameters are supported on each FHIR resource. A list of all search
-// parameters defined by the specification can be found in the FHIR Search
-// Parameter Registry (STU3
-// (https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
-// R4
-// (https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
-// FHIR search parameters for DSTU2 can be found on each resource's definition
-// page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
-// `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
-// `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
-// parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
+// interaction (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#search), STU3
+// (https://hl7.org/fhir/STU3/http.html#search), R4
+// (https://hl7.org/fhir/R4/http.html#search)) using the search semantics
+// described in the FHIR Search specification (DSTU2
+// (https://hl7.org/fhir/DSTU2/search.html), STU3
+// (https://hl7.org/fhir/STU3/search.html), R4
+// (https://hl7.org/fhir/R4/search.html)). Supports four methods of search
+// defined by the specification: * `GET [base]?[parameters]` to search across
+// all resources. * `GET [base]/[type]?[parameters]` to search resources of a
+// specified type. * `POST [base]/_search?[parameters]` as an alternate form
+// having the same semantics as the `GET` method across all resources. * `POST
+// [base]/[type]/_search?[parameters]` as an alternate form having the same
+// semantics as the `GET` method for the specified type. The `GET` and `POST`
+// methods do not support compartment searches. The `POST` method does not
+// support `application/x-www-form-urlencoded` search parameters. On success,
+// the response body contains a JSON-encoded representation of a `Bundle`
+// resource of type `searchset`, containing the results of the search. Errors
+// generated by the FHIR store contain a JSON-encoded `OperationOutcome`
+// resource describing the reason for the error. If the request cannot be
+// mapped to a valid API method on a FHIR store, a generic GCP error might be
+// returned instead. The server's capability statement, retrieved through
+// capabilities, indicates what search parameters are supported on each FHIR
+// resource. A list of all search parameters defined by the specification can
+// be found in the FHIR Search Parameter Registry (STU3
+// (https://hl7.org/fhir/STU3/searchparameter-registry.html), R4
+// (https://hl7.org/fhir/R4/searchparameter-registry.html)). FHIR search
+// parameters for DSTU2 can be found on each resource's definition page.
+// Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
+// `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse`
+// (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters:
+// `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
// `_summary=data`, and `_elements`. The maximum number of search results
// returned defaults to 100, which can be overridden by the `_count` parameter
// up to a maximum limit of 1000. The server might return fewer resources than
@@ -25090,9 +25065,9 @@
// - parent: Name of the FHIR store to retrieve resources from.
// - resourceType: Optional. The FHIR resource type to search, such as Patient
// or Observation. For a complete list, see the FHIR Resource Index (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
-// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
+// (https://hl7.org/fhir/DSTU2/resourcelist.html), STU3
+// (https://hl7.org/fhir/STU3/resourcelist.html), R4
+// (https://hl7.org/fhir/R4/resourcelist.html)).
func (r *ProjectsLocationsDatasetsFhirStoresFhirService) SearchType(parent string, resourceType string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
c := &ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
@@ -25164,25 +25139,25 @@
// Update: Updates the entire contents of a resource. Implements the FHIR
// standard update interaction (DSTU2
-// (https://hl7.org/implement/standards/fhir/DSTU2/http.html#update), STU3
-// (https://hl7.org/implement/standards/fhir/STU3/http.html#update), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#update)). If the
-// specified resource does not exist and the FHIR store has
-// enable_update_create set, creates the resource with the client-specified ID.
-// It is strongly advised not to include or encode any sensitive data such as
-// patient identifiers in client-specified resource IDs. Those IDs are part of
-// the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub
-// notifications. Those IDs can also be contained in reference fields within
-// other resources. The request body must contain a JSON-encoded FHIR resource,
-// and the request headers must contain `Content-Type: application/fhir+json`.
-// The resource must contain an `id` element having an identical value to the
-// ID in the REST path of the request. On success, the response body contains a
-// JSON-encoded representation of the updated resource, including the
-// server-assigned version ID. Errors generated by the FHIR store contain a
-// JSON-encoded `OperationOutcome` resource describing the reason for the
-// error. If the request cannot be mapped to a valid API method on a FHIR
-// store, a generic GCP error might be returned instead. For samples that show
-// how to call `update`, see Updating a FHIR resource
+// (https://hl7.org/fhir/DSTU2/http.html#update), STU3
+// (https://hl7.org/fhir/STU3/http.html#update), R4
+// (https://hl7.org/fhir/R4/http.html#update)). If the specified resource does
+// not exist and the FHIR store has enable_update_create set, creates the
+// resource with the client-specified ID. It is strongly advised not to include
+// or encode any sensitive data such as patient identifiers in client-specified
+// resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud
+// Audit Logs and Pub/Sub notifications. Those IDs can also be contained in
+// reference fields within other resources. The request body must contain a
+// JSON-encoded FHIR resource, and the request headers must contain
+// `Content-Type: application/fhir+json`. The resource must contain an `id`
+// element having an identical value to the ID in the REST path of the request.
+// On success, the response body contains a JSON-encoded representation of the
+// updated resource, including the server-assigned version ID. Errors generated
+// by the FHIR store contain a JSON-encoded `OperationOutcome` resource
+// describing the reason for the error. If the request cannot be mapped to a
+// valid API method on a FHIR store, a generic GCP error might be returned
+// instead. For samples that show how to call `update`, see Updating a FHIR
+// resource
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).
//
// - name: The name of the resource to update.
@@ -25254,15 +25229,15 @@
// Vread: Gets the contents of a version (current or historical) of a FHIR
// resource by version ID. Implements the FHIR standard vread interaction
-// (DSTU2 (https://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),
-// STU3 (https://hl7.org/implement/standards/fhir/STU3/http.html#vread), R4
-// (https://hl7.org/implement/standards/fhir/R4/http.html#vread)). On success,
-// the response body contains a JSON-encoded representation of the resource.
-// Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
-// resource describing the reason for the error. If the request cannot be
-// mapped to a valid API method on a FHIR store, a generic GCP error might be
-// returned instead. For samples that show how to call `vread`, see Retrieving
-// a FHIR resource version
+// (DSTU2 (https://hl7.org/fhir/DSTU2/http.html#vread), STU3
+// (https://hl7.org/fhir/STU3/http.html#vread), R4
+// (https://hl7.org/fhir/R4/http.html#vread)). On success, the response body
+// contains a JSON-encoded representation of the resource. Errors generated by
+// the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
+// the reason for the error. If the request cannot be mapped to a valid API
+// method on a FHIR store, a generic GCP error might be returned instead. For
+// samples that show how to call `vread`, see Retrieving a FHIR resource
+// version
// (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).
//
// - name: The name of the resource version to retrieve.
diff --git a/managedkafka/v1/managedkafka-api.json b/managedkafka/v1/managedkafka-api.json
index e7e17f4..37afdd9 100644
--- a/managedkafka/v1/managedkafka-api.json
+++ b/managedkafka/v1/managedkafka-api.json
@@ -1436,13 +1436,1440 @@
]
}
}
+ },
+ "schemaRegistries": {
+ "methods": {
+ "create": {
+ "description": "Create a schema registry instance.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.create",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent whose schema registry instance is to be created. Structured like: `projects/{project}/locations/{location}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/schemaRegistries",
+ "request": {
+ "$ref": "CreateSchemaRegistryRequest"
+ },
+ "response": {
+ "$ref": "SchemaRegistry"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Delete a schema registry instance.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema registry instance to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Get the schema registry instance.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema registry instance to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaRegistry"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "List schema registries.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent whose schema registry instances are to be listed. Structured like: `projects/{project}/locations/{location}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/schemaRegistries",
+ "response": {
+ "$ref": "ListSchemaRegistriesResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "compatibility": {
+ "methods": {
+ "checkCompatibility": {
+ "description": "Check compatibility of a schema with all versions or a specific version of a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/compatibility/{compatibilityId}",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.compatibility.checkCompatibility",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the resource to check compatibility for. The format is either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/compatibility/subjects/*/versions: Check compatibility with one or more versions of the specified subject. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/compatibility/subjects/{subject}/versions/{version}: Check compatibility with a specific version of the subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/compatibility/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "CheckCompatibilityRequest"
+ },
+ "response": {
+ "$ref": "CheckCompatibilityResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "config": {
+ "methods": {
+ "delete": {
+ "description": "Delete schema config for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/config/{configId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.config.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of subject to delete the config for. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Get schema config at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/config/{configId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.config.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "defaultToGlobal": {
+ "description": "Optional. If true, the config will fall back to the config at the global level if no subject level config is found.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The resource name to get the config for. It can be either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Update config at global level or for a subject. Creates a SchemaSubject-level SchemaConfig if it does not exist.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/config/{configId}",
+ "httpMethod": "PUT",
+ "id": "managedkafka.projects.locations.schemaRegistries.config.update",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name to update the config for. It can be either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Update config at global level. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Update config for a specific subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "UpdateSchemaConfigRequest"
+ },
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "contexts": {
+ "methods": {
+ "get": {
+ "description": "Get the context.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the context to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Context"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "List contexts for a schema registry.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent of the contexts. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/contexts",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "compatibility": {
+ "methods": {
+ "checkCompatibility": {
+ "description": "Check compatibility of a schema with all versions or a specific version of a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/compatibility/{compatibilityId}",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.compatibility.checkCompatibility",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the resource to check compatibility for. The format is either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/compatibility/subjects/*/versions: Check compatibility with one or more versions of the specified subject. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/compatibility/subjects/{subject}/versions/{version}: Check compatibility with a specific version of the subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/compatibility/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "CheckCompatibilityRequest"
+ },
+ "response": {
+ "$ref": "CheckCompatibilityResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "config": {
+ "methods": {
+ "delete": {
+ "description": "Delete schema config for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/config/{configId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.config.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of subject to delete the config for. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Get schema config at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/config/{configId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.config.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "defaultToGlobal": {
+ "description": "Optional. If true, the config will fall back to the config at the global level if no subject level config is found.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The resource name to get the config for. It can be either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Update config at global level or for a subject. Creates a SchemaSubject-level SchemaConfig if it does not exist.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/config/{configId}",
+ "httpMethod": "PUT",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.config.update",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name to update the config for. It can be either of following: * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Update config at global level. * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Update config for a specific subject.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/config/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "UpdateSchemaConfigRequest"
+ },
+ "response": {
+ "$ref": "SchemaConfig"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "mode": {
+ "methods": {
+ "get": {
+ "description": "Get mode at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/mode/{modeId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.mode.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of the mode. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}: mode for a schema registry, or * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subject}: mode for a specific subject in a specific context",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaMode"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Update mode at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/mode/{modeId}",
+ "httpMethod": "PUT",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.mode.update",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of the mode. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}: mode for a schema registry, or * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subject}: mode for a specific subject in a specific context",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/mode/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "UpdateSchemaModeRequest"
+ },
+ "response": {
+ "$ref": "SchemaMode"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "schemas": {
+ "methods": {
+ "get": {
+ "description": "Get the schema for the given schema id.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/schemas/{schemasId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.schemas.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Schema"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "getSchema": {
+ "description": "Get the schema string for the given schema id. The response will be the schema string.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/schemas/{schemasId}/schema",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.schemas.getSchema",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}/schema",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "subjects": {
+ "methods": {
+ "list": {
+ "description": "List subjects which reference a particular schema id. The response will be an array of subject names.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/schemas/{schemasId}/subjects",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.schemas.subjects.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted subjects. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The schema resource whose associated subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. The subject to filter the subjects by.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/subjects",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "types": {
+ "methods": {
+ "list": {
+ "description": "List the supported schema types. The response will be an array of schema types.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/schemas/types",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.schemas.types.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent schema registry whose schema types are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/schemas/types",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "versions": {
+ "methods": {
+ "list": {
+ "description": "List the schema versions for the given schema id. The response will be an array of subject-version pairs as: [{\"subject\":\"subject1\", \"version\":1}, {\"subject\":\"subject2\", \"version\":2}].",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/schemas/{schemasId}/versions",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.schemas.versions.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted versions of the schema, even if the subject is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The schema whose schema versions are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. The subject to filter the subjects by.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "subjects": {
+ "methods": {
+ "delete": {
+ "description": "Delete a subject. The response will be an array of versions of the deleted subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the subject to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "permanent": {
+ "description": "Optional. If true, the subject and all associated metadata including the schema ID will be deleted permanently. Otherwise, only the subject is soft-deleted. The default is false. Soft-deleted subjects can still be searched in ListSubjects API call with deleted=true query parameter. A soft-delete of a subject must be performed before a hard-delete.",
+ "location": "query",
+ "type": "boolean"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "List subjects in the schema registry. The response will be an array of subject names.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted subjects. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The parent schema registry/context whose subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "subjectPrefix": {
+ "description": "Optional. The context to filter the subjects by, in the format of `:.{context}:`. If unset, all subjects in the registry are returned. Set to empty string or add as '?subjectPrefix=' at the end of this request to list subjects in the default context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/subjects",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "lookupVersion": {
+ "description": "Lookup a schema under the specified subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.lookupVersion",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The subject to lookup the schema in. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}",
+ "request": {
+ "$ref": "LookupVersionRequest"
+ },
+ "response": {
+ "$ref": "SchemaVersion"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "versions": {
+ "methods": {
+ "create": {
+ "description": "Register a new version under a given subject with the given schema.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.create",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The subject to create the version for. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "request": {
+ "$ref": "CreateVersionRequest"
+ },
+ "response": {
+ "$ref": "CreateVersionResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Delete a version of a subject. The response will be the deleted version id.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions/{versionsId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the subject version to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "permanent": {
+ "description": "Optional. If true, both the version and the referenced schema ID will be permanently deleted. The default is false. If false, the version will be deleted but the schema ID will be retained. Soft-deleted versions can still be searched in ListVersions API call with deleted=true query parameter. A soft-delete of a version must be performed before a hard-delete.",
+ "location": "query",
+ "type": "boolean"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Get a versioned schema (schema with subject/version) of a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions/{versionsId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, no matter if the subject/version is soft-deleted or not, it returns the version details. If false, it returns NOT_FOUND error if the subject/version is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The name of the subject to return versions. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaVersion"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "getSchema": {
+ "description": "Get the schema string only for a version of a subject. The response will be the schema string.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions/{versionsId}/schema",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.getSchema",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, no matter if the subject/version is soft-deleted or not, it returns the version details. If false, it returns NOT_FOUND error if the subject/version is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The name of the subject to return versions. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}/schema",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Get all versions of a subject. The response will be an array of versions of the subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted versions of an active or soft-deleted subject. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The subject whose versions are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "referencedby": {
+ "methods": {
+ "list": {
+ "description": "Get a list of IDs of schemas that reference the schema with the given subject and version.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/contexts/{contextsId}/subjects/{subjectsId}/versions/{versionsId}/referencedby",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.referencedby.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The version to list referenced by. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/contexts/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/referencedby",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "mode": {
+ "methods": {
+ "get": {
+ "description": "Get mode at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/mode/{modeId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.mode.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of the mode. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}: mode for a schema registry, or * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subject}: mode for a specific subject in a specific context",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaMode"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "update": {
+ "description": "Update mode at global level or for a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/mode/{modeId}",
+ "httpMethod": "PUT",
+ "id": "managedkafka.projects.locations.schemaRegistries.mode.update",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The resource name of the mode. The format is * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/mode/{subject}: mode for a schema registry, or * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/mode/{subject}: mode for a specific subject in a specific context",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/mode/.*$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "request": {
+ "$ref": "UpdateSchemaModeRequest"
+ },
+ "response": {
+ "$ref": "SchemaMode"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "schemas": {
+ "methods": {
+ "get": {
+ "description": "Get the schema for the given schema id.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/schemas/{schemasId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.schemas.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Schema"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "getSchema": {
+ "description": "Get the schema string for the given schema id. The response will be the schema string.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/schemas/{schemasId}/schema",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.schemas.getSchema",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the schema to return. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. Used to limit the search for the schema ID to a specific subject, otherwise the schema ID will be searched for in all subjects in the given specified context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}/schema",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "subjects": {
+ "methods": {
+ "list": {
+ "description": "List subjects which reference a particular schema id. The response will be an array of subject names.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/schemas/{schemasId}/subjects",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.schemas.subjects.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted subjects. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The schema resource whose associated subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. The subject to filter the subjects by.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/subjects",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "types": {
+ "methods": {
+ "list": {
+ "description": "List the supported schema types. The response will be an array of schema types.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/schemas/types",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.schemas.types.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The parent schema registry whose schema types are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/schemas/types",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ },
+ "versions": {
+ "methods": {
+ "list": {
+ "description": "List the schema versions for the given schema id. The response will be an array of subject-version pairs as: [{\"subject\":\"subject1\", \"version\":1}, {\"subject\":\"subject2\", \"version\":2}].",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/schemas/{schemasId}/versions",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.schemas.versions.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted versions of the schema, even if the subject is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The schema whose schema versions are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/schemas/ids/{schema}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/schemas/ids/{schema}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/schemas/.*$",
+ "required": true,
+ "type": "string"
+ },
+ "subject": {
+ "description": "Optional. The subject to filter the subjects by.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "subjects": {
+ "methods": {
+ "delete": {
+ "description": "Delete a subject. The response will be an array of versions of the deleted subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the subject to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "permanent": {
+ "description": "Optional. If true, the subject and all associated metadata including the schema ID will be deleted permanently. Otherwise, only the subject is soft-deleted. The default is false. Soft-deleted subjects can still be searched in ListSubjects API call with deleted=true query parameter. A soft-delete of a subject must be performed before a hard-delete.",
+ "location": "query",
+ "type": "boolean"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "List subjects in the schema registry. The response will be an array of subject names.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted subjects. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The parent schema registry/context whose subjects are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "subjectPrefix": {
+ "description": "Optional. The context to filter the subjects by, in the format of `:.{context}:`. If unset, all subjects in the registry are returned. Set to empty string or add as '?subjectPrefix=' at the end of this request to list subjects in the default context.",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/subjects",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "lookupVersion": {
+ "description": "Lookup a schema under the specified subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.lookupVersion",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The subject to lookup the schema in. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}",
+ "request": {
+ "$ref": "LookupVersionRequest"
+ },
+ "response": {
+ "$ref": "SchemaVersion"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "versions": {
+ "methods": {
+ "create": {
+ "description": "Register a new version under a given subject with the given schema.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions",
+ "httpMethod": "POST",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.create",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The subject to create the version for. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "request": {
+ "$ref": "CreateVersionRequest"
+ },
+ "response": {
+ "$ref": "CreateVersionResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "delete": {
+ "description": "Delete a version of a subject. The response will be the deleted version id.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions/{versionsId}",
+ "httpMethod": "DELETE",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Required. The name of the subject version to delete. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "permanent": {
+ "description": "Optional. If true, both the version and the referenced schema ID will be permanently deleted. The default is false. If false, the version will be deleted but the schema ID will be retained. Soft-deleted versions can still be searched in ListVersions API call with deleted=true query parameter. A soft-delete of a version must be performed before a hard-delete.",
+ "location": "query",
+ "type": "boolean"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "get": {
+ "description": "Get a versioned schema (schema with subject/version) of a subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions/{versionsId}",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, no matter if the subject/version is soft-deleted or not, it returns the version details. If false, it returns NOT_FOUND error if the subject/version is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The name of the subject to return versions. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "SchemaVersion"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "getSchema": {
+ "description": "Get the schema string only for a version of a subject. The response will be the schema string.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions/{versionsId}/schema",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.getSchema",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, no matter if the subject/version is soft-deleted or not, it returns the version details. If false, it returns NOT_FOUND error if the subject/version is soft-deleted. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Required. The name of the subject to return versions. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}/schema",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "list": {
+ "description": "Get all versions of a subject. The response will be an array of versions of the subject.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "deleted": {
+ "description": "Optional. If true, the response will include soft-deleted versions of an active or soft-deleted subject. The default is false.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "parent": {
+ "description": "Required. The subject whose versions are to be listed. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/versions",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ },
+ "resources": {
+ "referencedby": {
+ "methods": {
+ "list": {
+ "description": "Get a list of IDs of schemas that reference the schema with the given subject and version.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemaRegistries/{schemaRegistriesId}/subjects/{subjectsId}/versions/{versionsId}/referencedby",
+ "httpMethod": "GET",
+ "id": "managedkafka.projects.locations.schemaRegistries.subjects.versions.referencedby.list",
+ "parameterOrder": [
+ "parent"
+ ],
+ "parameters": {
+ "parent": {
+ "description": "Required. The version to list referenced by. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}/versions/{version}` or `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}/versions/{version}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/schemaRegistries/[^/]+/subjects/[^/]+/versions/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+parent}/referencedby",
+ "response": {
+ "$ref": "HttpBody"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
}
}
}
}
},
- "revision": "20250414",
+ "revision": "20250508",
"rootUrl": "https://managedkafka.googleapis.com/",
"schemas": {
"AccessConfig": {
@@ -1557,6 +2984,62 @@
},
"type": "object"
},
+ "CheckCompatibilityRequest": {
+ "description": "Request for CheckCompatibility.",
+ "id": "CheckCompatibilityRequest",
+ "properties": {
+ "references": {
+ "description": "Optional. The schema references used by the schema.",
+ "items": {
+ "$ref": "SchemaReference"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "description": "Required. The schema payload",
+ "type": "string"
+ },
+ "schemaType": {
+ "description": "Optional. The schema type of the schema.",
+ "enum": [
+ "SCHEMA_TYPE_UNSPECIFIED",
+ "AVRO",
+ "JSON",
+ "PROTOBUF"
+ ],
+ "enumDescriptions": [
+ "No schema type. The default will be AVRO.",
+ "Avro schema type.",
+ "JSON schema type.",
+ "Protobuf schema type."
+ ],
+ "type": "string"
+ },
+ "verbose": {
+ "description": "Optional. If true, the response will contain the compatibility check result with reasons for failed checks. The default is false.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "CheckCompatibilityResponse": {
+ "description": "Response for CheckCompatibility.",
+ "id": "CheckCompatibilityResponse",
+ "properties": {
+ "is_compatible": {
+ "description": "The compatibility check result. If true, the schema is compatible with the resource.",
+ "type": "boolean"
+ },
+ "messages": {
+ "description": "Failure reasons if verbose = true.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"Cluster": {
"description": "An Apache Kafka cluster deployed in a location.",
"id": "Cluster",
@@ -1842,6 +3325,99 @@
},
"type": "object"
},
+ "Context": {
+ "description": "Context represents an independent schema grouping in a schema registry instance.",
+ "id": "Context",
+ "properties": {
+ "name": {
+ "description": "Identifier. The name of the context. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}` The context name {context} can contain the following: * Up to 255 characters. * Allowed characters: letters (uppercase or lowercase), numbers, and the following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.",
+ "type": "string"
+ },
+ "subjects": {
+ "description": "Optional. The subjects of the context.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "CreateSchemaRegistryRequest": {
+ "description": "Request to create a schema registry instance.",
+ "id": "CreateSchemaRegistryRequest",
+ "properties": {
+ "schemaRegistry": {
+ "$ref": "SchemaRegistry",
+ "description": "Required. The schema registry instance to create. The name field is ignored."
+ },
+ "schemaRegistryId": {
+ "description": "Required. The schema registry instance ID to use for this schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (-). The maximum length is 63 characters. The ID must not start with a number.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "CreateVersionRequest": {
+ "description": "Request for CreateVersion.",
+ "id": "CreateVersionRequest",
+ "properties": {
+ "id": {
+ "description": "Optional. The schema ID of the schema. If not specified, the schema ID will be generated by the server. If the schema ID is specified, it must not be used by an existing schema that is different from the schema to be created.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "normalize": {
+ "description": "Optional. If true, the schema will be normalized before being stored. The default is false.",
+ "type": "boolean"
+ },
+ "references": {
+ "description": "Optional. The schema references used by the schema.",
+ "items": {
+ "$ref": "SchemaReference"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "description": "Required. The schema payload",
+ "type": "string"
+ },
+ "schemaType": {
+ "description": "Optional. The type of the schema. It is optional. If not specified, the schema type will be AVRO.",
+ "enum": [
+ "SCHEMA_TYPE_UNSPECIFIED",
+ "AVRO",
+ "JSON",
+ "PROTOBUF"
+ ],
+ "enumDescriptions": [
+ "No schema type. The default will be AVRO.",
+ "Avro schema type.",
+ "JSON schema type.",
+ "Protobuf schema type."
+ ],
+ "type": "string"
+ },
+ "version": {
+ "description": "Optional. The version to create. It is optional. If not specified, the version will be created with the max version ID of the subject increased by 1. If the version ID is specified, it will be used as the new version ID and must not be used by an existing version of the subject.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "CreateVersionResponse": {
+ "description": "Response for CreateVersion.",
+ "id": "CreateVersionResponse",
+ "properties": {
+ "id": {
+ "description": "The unique identifier of the schema created.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
@@ -1863,6 +3439,33 @@
},
"type": "object"
},
+ "HttpBody": {
+ "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.",
+ "id": "HttpBody",
+ "properties": {
+ "contentType": {
+ "description": "The HTTP Content-Type header value specifying the content type of the body.",
+ "type": "string"
+ },
+ "data": {
+ "description": "The HTTP request/response body as raw binary.",
+ "format": "byte",
+ "type": "string"
+ },
+ "extensions": {
+ "description": "Application specific response metadata. Must be set in the first response for streaming APIs.",
+ "items": {
+ "additionalProperties": {
+ "description": "Properties of the object. Contains field @type with type URL.",
+ "type": "any"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"ListAclsResponse": {
"description": "Response for ListAcls.",
"id": "ListAclsResponse",
@@ -2003,6 +3606,20 @@
},
"type": "object"
},
+ "ListSchemaRegistriesResponse": {
+ "description": "Request for ListSchemaRegistries.",
+ "id": "ListSchemaRegistriesResponse",
+ "properties": {
+ "schemaRegistries": {
+ "description": "The schema registry instances.",
+ "items": {
+ "$ref": "SchemaRegistry"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"ListTopicsResponse": {
"description": "Response for ListTopics.",
"id": "ListTopicsResponse",
@@ -2055,6 +3672,48 @@
},
"type": "object"
},
+ "LookupVersionRequest": {
+ "description": "Request for LookupVersion.",
+ "id": "LookupVersionRequest",
+ "properties": {
+ "deleted": {
+ "description": "Optional. If true, soft-deleted versions will be included in lookup, no matter if the subject is active or soft-deleted. If false, soft-deleted versions will be excluded. The default is false.",
+ "type": "boolean"
+ },
+ "normalize": {
+ "description": "Optional. If true, the schema will be normalized before being looked up. The default is false.",
+ "type": "boolean"
+ },
+ "references": {
+ "description": "Optional. The schema references used by the schema.",
+ "items": {
+ "$ref": "SchemaReference"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "description": "Required. The schema payload",
+ "type": "string"
+ },
+ "schemaType": {
+ "description": "Optional. The schema type of the schema.",
+ "enum": [
+ "SCHEMA_TYPE_UNSPECIFIED",
+ "AVRO",
+ "JSON",
+ "PROTOBUF"
+ ],
+ "enumDescriptions": [
+ "No schema type. The default will be AVRO.",
+ "Avro schema type.",
+ "JSON schema type.",
+ "Protobuf schema type."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"NetworkConfig": {
"description": "The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.",
"id": "NetworkConfig",
@@ -2217,6 +3876,187 @@
"properties": {},
"type": "object"
},
+ "Schema": {
+ "description": "Schema for a Kafka message.",
+ "id": "Schema",
+ "properties": {
+ "references": {
+ "description": "Optional. The schema references used by the schema.",
+ "items": {
+ "$ref": "SchemaReference"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "description": "The schema payload.",
+ "type": "string"
+ },
+ "schemaType": {
+ "description": "Optional. The schema type of the schema.",
+ "enum": [
+ "SCHEMA_TYPE_UNSPECIFIED",
+ "AVRO",
+ "JSON",
+ "PROTOBUF"
+ ],
+ "enumDescriptions": [
+ "No schema type. The default will be AVRO.",
+ "Avro schema type.",
+ "JSON schema type.",
+ "Protobuf schema type."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SchemaConfig": {
+ "description": "SchemaConfig represents configuration for a schema registry or a specific subject.",
+ "id": "SchemaConfig",
+ "properties": {
+ "alias": {
+ "description": "Optional. The subject to which this subject is an alias of. Only applicable for subject config.",
+ "type": "string"
+ },
+ "compatibility": {
+ "description": "Required. The compatibility type of the schema. The default value is BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.",
+ "enum": [
+ "NONE",
+ "BACKWARD",
+ "BACKWARD_TRANSITIVE",
+ "FORWARD",
+ "FORWARD_TRANSITIVE",
+ "FULL",
+ "FULL_TRANSITIVE"
+ ],
+ "enumDescriptions": [
+ "No compatibility check.",
+ "Backwards compatible with the most recent version.",
+ "Backwards compatible with all previous versions.",
+ "Forwards compatible with the most recent version.",
+ "Forwards compatible with all previous versions.",
+ "Backwards and forwards compatible with the most recent version.",
+ "Backwards and forwards compatible with all previous versions."
+ ],
+ "type": "string"
+ },
+ "normalize": {
+ "description": "Optional. If true, the schema will be normalized before being stored or looked up. The default is false. If unset in a SchemaSubject-level SchemaConfig, the global value will be used. If unset in a SchemaRegistry-level SchemaConfig, reverts to the default value.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "SchemaMode": {
+ "description": "SchemaMode represents the mode of a schema registry or a specific subject. Four modes are supported: * NONE: This is the default mode for a subject and essentially means that the subject does not have any mode set. This means the subject will follow the schema registry's mode. * READONLY: The schema registry is in read-only mode. * READWRITE: The schema registry is in read-write mode, which allows limited write operations on the schema. * IMPORT: The schema registry is in import mode, which allows more editing operations on the schema for data importing purposes.",
+ "id": "SchemaMode",
+ "properties": {
+ "mode": {
+ "description": "Required. The mode type of a schema registry (READWRITE by default) or of a subject (NONE by default, which means use the global schema registry setting).",
+ "enum": [
+ "NONE",
+ "READONLY",
+ "READWRITE",
+ "IMPORT"
+ ],
+ "enumDescriptions": [
+ "No mode.",
+ "READONLY mode.",
+ "READWRITE mode.",
+ "IMPORT mode."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SchemaReference": {
+ "description": "SchemaReference is a reference to a schema.",
+ "id": "SchemaReference",
+ "properties": {
+ "name": {
+ "description": "Required. The name of the reference.",
+ "type": "string"
+ },
+ "subject": {
+ "description": "Required. The subject of the reference.",
+ "type": "string"
+ },
+ "version": {
+ "description": "Required. The version of the reference.",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "SchemaRegistry": {
+ "description": "SchemaRegistry is a schema registry instance.",
+ "id": "SchemaRegistry",
+ "properties": {
+ "contexts": {
+ "description": "Output only. The contexts of the schema registry instance.",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true,
+ "type": "array"
+ },
+ "name": {
+ "description": "Identifier. The name of the schema registry instance. Structured like: `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}` The instance name {schema_registry} can contain the following: * Up to 255 characters. * Letters (uppercase or lowercase), numbers, and underscores.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SchemaVersion": {
+ "description": "Version of a schema.",
+ "id": "SchemaVersion",
+ "properties": {
+ "id": {
+ "description": "Required. The schema ID.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "references": {
+ "description": "Optional. The schema references used by the schema.",
+ "items": {
+ "$ref": "SchemaReference"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "description": "Required. The schema payload.",
+ "type": "string"
+ },
+ "schemaType": {
+ "description": "Optional. The schema type of the schema.",
+ "enum": [
+ "SCHEMA_TYPE_UNSPECIFIED",
+ "AVRO",
+ "JSON",
+ "PROTOBUF"
+ ],
+ "enumDescriptions": [
+ "No schema type. The default will be AVRO.",
+ "Avro schema type.",
+ "JSON schema type.",
+ "Protobuf schema type."
+ ],
+ "type": "string"
+ },
+ "subject": {
+ "description": "Required. The subject of the version.",
+ "type": "string"
+ },
+ "version": {
+ "description": "Required. The version ID",
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
@@ -2300,6 +4140,62 @@
}
},
"type": "object"
+ },
+ "UpdateSchemaConfigRequest": {
+ "description": "Request for updating schema config. On a SchemaSubject-level SchemaConfig, an unset field will be removed from the SchemaConfig.",
+ "id": "UpdateSchemaConfigRequest",
+ "properties": {
+ "compatibility": {
+ "description": "Required. The compatibility type of the schemas. Cannot be unset for a SchemaRegistry-level SchemaConfig. If unset on a SchemaSubject-level SchemaConfig, removes the compatibility field for the SchemaConfig.",
+ "enum": [
+ "NONE",
+ "BACKWARD",
+ "BACKWARD_TRANSITIVE",
+ "FORWARD",
+ "FORWARD_TRANSITIVE",
+ "FULL",
+ "FULL_TRANSITIVE"
+ ],
+ "enumDescriptions": [
+ "No compatibility check.",
+ "Backwards compatible with the most recent version.",
+ "Backwards compatible with all previous versions.",
+ "Forwards compatible with the most recent version.",
+ "Forwards compatible with all previous versions.",
+ "Backwards and forwards compatible with the most recent version.",
+ "Backwards and forwards compatible with all previous versions."
+ ],
+ "type": "string"
+ },
+ "normalize": {
+ "description": "Optional. If true, the schema will be normalized before being stored or looked up. The default is false. Cannot be unset for a SchemaRegistry-level SchemaConfig. If unset on a SchemaSubject-level SchemaConfig, removes the normalize field for the SchemaConfig.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "UpdateSchemaModeRequest": {
+ "description": "Request for updating schema registry or subject mode.",
+ "id": "UpdateSchemaModeRequest",
+ "properties": {
+ "mode": {
+ "description": "Required. The mode type.",
+ "enum": [
+ "NONE",
+ "READONLY",
+ "READWRITE",
+ "IMPORT"
+ ],
+ "enumDescriptions": [
+ "No mode.",
+ "READONLY mode.",
+ "READWRITE mode.",
+ "IMPORT mode."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
}
},
"servicePath": "",
diff --git a/managedkafka/v1/managedkafka-gen.go b/managedkafka/v1/managedkafka-gen.go
index ab8cccc..5f74e23 100644
--- a/managedkafka/v1/managedkafka-gen.go
+++ b/managedkafka/v1/managedkafka-gen.go
@@ -171,6 +171,7 @@
rs.Clusters = NewProjectsLocationsClustersService(s)
rs.ConnectClusters = NewProjectsLocationsConnectClustersService(s)
rs.Operations = NewProjectsLocationsOperationsService(s)
+ rs.SchemaRegistries = NewProjectsLocationsSchemaRegistriesService(s)
return rs
}
@@ -182,6 +183,8 @@
ConnectClusters *ProjectsLocationsConnectClustersService
Operations *ProjectsLocationsOperationsService
+
+ SchemaRegistries *ProjectsLocationsSchemaRegistriesService
}
func NewProjectsLocationsClustersService(s *Service) *ProjectsLocationsClustersService {
@@ -259,6 +262,267 @@
s *Service
}
+func NewProjectsLocationsSchemaRegistriesService(s *Service) *ProjectsLocationsSchemaRegistriesService {
+ rs := &ProjectsLocationsSchemaRegistriesService{s: s}
+ rs.Compatibility = NewProjectsLocationsSchemaRegistriesCompatibilityService(s)
+ rs.Config = NewProjectsLocationsSchemaRegistriesConfigService(s)
+ rs.Contexts = NewProjectsLocationsSchemaRegistriesContextsService(s)
+ rs.Mode = NewProjectsLocationsSchemaRegistriesModeService(s)
+ rs.Schemas = NewProjectsLocationsSchemaRegistriesSchemasService(s)
+ rs.Subjects = NewProjectsLocationsSchemaRegistriesSubjectsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesService struct {
+ s *Service
+
+ Compatibility *ProjectsLocationsSchemaRegistriesCompatibilityService
+
+ Config *ProjectsLocationsSchemaRegistriesConfigService
+
+ Contexts *ProjectsLocationsSchemaRegistriesContextsService
+
+ Mode *ProjectsLocationsSchemaRegistriesModeService
+
+ Schemas *ProjectsLocationsSchemaRegistriesSchemasService
+
+ Subjects *ProjectsLocationsSchemaRegistriesSubjectsService
+}
+
+func NewProjectsLocationsSchemaRegistriesCompatibilityService(s *Service) *ProjectsLocationsSchemaRegistriesCompatibilityService {
+ rs := &ProjectsLocationsSchemaRegistriesCompatibilityService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesCompatibilityService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesConfigService(s *Service) *ProjectsLocationsSchemaRegistriesConfigService {
+ rs := &ProjectsLocationsSchemaRegistriesConfigService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesConfigService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsService(s *Service) *ProjectsLocationsSchemaRegistriesContextsService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsService{s: s}
+ rs.Compatibility = NewProjectsLocationsSchemaRegistriesContextsCompatibilityService(s)
+ rs.Config = NewProjectsLocationsSchemaRegistriesContextsConfigService(s)
+ rs.Mode = NewProjectsLocationsSchemaRegistriesContextsModeService(s)
+ rs.Schemas = NewProjectsLocationsSchemaRegistriesContextsSchemasService(s)
+ rs.Subjects = NewProjectsLocationsSchemaRegistriesContextsSubjectsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsService struct {
+ s *Service
+
+ Compatibility *ProjectsLocationsSchemaRegistriesContextsCompatibilityService
+
+ Config *ProjectsLocationsSchemaRegistriesContextsConfigService
+
+ Mode *ProjectsLocationsSchemaRegistriesContextsModeService
+
+ Schemas *ProjectsLocationsSchemaRegistriesContextsSchemasService
+
+ Subjects *ProjectsLocationsSchemaRegistriesContextsSubjectsService
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsCompatibilityService(s *Service) *ProjectsLocationsSchemaRegistriesContextsCompatibilityService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsCompatibilityService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsCompatibilityService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsConfigService(s *Service) *ProjectsLocationsSchemaRegistriesContextsConfigService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsConfigService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsConfigService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsModeService(s *Service) *ProjectsLocationsSchemaRegistriesContextsModeService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsModeService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsModeService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSchemasService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSchemasService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSchemasService{s: s}
+ rs.Subjects = NewProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService(s)
+ rs.Types = NewProjectsLocationsSchemaRegistriesContextsSchemasTypesService(s)
+ rs.Versions = NewProjectsLocationsSchemaRegistriesContextsSchemasVersionsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasService struct {
+ s *Service
+
+ Subjects *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService
+
+ Types *ProjectsLocationsSchemaRegistriesContextsSchemasTypesService
+
+ Versions *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsService
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSchemasTypesService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSchemasTypesService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSchemasTypesService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasTypesService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSchemasVersionsService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSchemasVersionsService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasVersionsService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSubjectsService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSubjectsService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSubjectsService{s: s}
+ rs.Versions = NewProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsService struct {
+ s *Service
+
+ Versions *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService{s: s}
+ rs.Referencedby = NewProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService struct {
+ s *Service
+
+ Referencedby *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService
+}
+
+func NewProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService(s *Service) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService {
+ rs := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesModeService(s *Service) *ProjectsLocationsSchemaRegistriesModeService {
+ rs := &ProjectsLocationsSchemaRegistriesModeService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesModeService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesSchemasService(s *Service) *ProjectsLocationsSchemaRegistriesSchemasService {
+ rs := &ProjectsLocationsSchemaRegistriesSchemasService{s: s}
+ rs.Subjects = NewProjectsLocationsSchemaRegistriesSchemasSubjectsService(s)
+ rs.Types = NewProjectsLocationsSchemaRegistriesSchemasTypesService(s)
+ rs.Versions = NewProjectsLocationsSchemaRegistriesSchemasVersionsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasService struct {
+ s *Service
+
+ Subjects *ProjectsLocationsSchemaRegistriesSchemasSubjectsService
+
+ Types *ProjectsLocationsSchemaRegistriesSchemasTypesService
+
+ Versions *ProjectsLocationsSchemaRegistriesSchemasVersionsService
+}
+
+func NewProjectsLocationsSchemaRegistriesSchemasSubjectsService(s *Service) *ProjectsLocationsSchemaRegistriesSchemasSubjectsService {
+ rs := &ProjectsLocationsSchemaRegistriesSchemasSubjectsService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasSubjectsService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesSchemasTypesService(s *Service) *ProjectsLocationsSchemaRegistriesSchemasTypesService {
+ rs := &ProjectsLocationsSchemaRegistriesSchemasTypesService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasTypesService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesSchemasVersionsService(s *Service) *ProjectsLocationsSchemaRegistriesSchemasVersionsService {
+ rs := &ProjectsLocationsSchemaRegistriesSchemasVersionsService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasVersionsService struct {
+ s *Service
+}
+
+func NewProjectsLocationsSchemaRegistriesSubjectsService(s *Service) *ProjectsLocationsSchemaRegistriesSubjectsService {
+ rs := &ProjectsLocationsSchemaRegistriesSubjectsService{s: s}
+ rs.Versions = NewProjectsLocationsSchemaRegistriesSubjectsVersionsService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsService struct {
+ s *Service
+
+ Versions *ProjectsLocationsSchemaRegistriesSubjectsVersionsService
+}
+
+func NewProjectsLocationsSchemaRegistriesSubjectsVersionsService(s *Service) *ProjectsLocationsSchemaRegistriesSubjectsVersionsService {
+ rs := &ProjectsLocationsSchemaRegistriesSubjectsVersionsService{s: s}
+ rs.Referencedby = NewProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService(s)
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsService struct {
+ s *Service
+
+ Referencedby *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService
+}
+
+func NewProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService(s *Service) *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService {
+ rs := &ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService{s: s}
+ return rs
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService struct {
+ s *Service
+}
+
// AccessConfig: The configuration of access to the Kafka cluster.
type AccessConfig struct {
// NetworkConfigs: Required. Virtual Private Cloud (VPC) networks that must be
@@ -440,6 +704,69 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// CheckCompatibilityRequest: Request for CheckCompatibility.
+type CheckCompatibilityRequest struct {
+ // References: Optional. The schema references used by the schema.
+ References []*SchemaReference `json:"references,omitempty"`
+ // Schema: Required. The schema payload
+ Schema string `json:"schema,omitempty"`
+ // SchemaType: Optional. The schema type of the schema.
+ //
+ // Possible values:
+ // "SCHEMA_TYPE_UNSPECIFIED" - No schema type. The default will be AVRO.
+ // "AVRO" - Avro schema type.
+ // "JSON" - JSON schema type.
+ // "PROTOBUF" - Protobuf schema type.
+ SchemaType string `json:"schemaType,omitempty"`
+ // Verbose: Optional. If true, the response will contain the compatibility
+ // check result with reasons for failed checks. The default is false.
+ Verbose bool `json:"verbose,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "References") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "References") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s CheckCompatibilityRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod CheckCompatibilityRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// CheckCompatibilityResponse: Response for CheckCompatibility.
+type CheckCompatibilityResponse struct {
+ // IsCompatible: The compatibility check result. If true, the schema is
+ // compatible with the resource.
+ IsCompatible bool `json:"is_compatible,omitempty"`
+ // Messages: Failure reasons if verbose = true.
+ Messages []string `json:"messages,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "IsCompatible") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "IsCompatible") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s CheckCompatibilityResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod CheckCompatibilityResponse
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// Cluster: An Apache Kafka cluster deployed in a location.
type Cluster struct {
// CapacityConfig: Required. Capacity configuration for the Kafka cluster.
@@ -767,6 +1094,138 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// Context: Context represents an independent schema grouping in a schema
+// registry instance.
+type Context struct {
+ // Name: Identifier. The name of the context. Structured like:
+ // `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/c
+ // ontexts/{context}` The context name {context} can contain the following: *
+ // Up to 255 characters. * Allowed characters: letters (uppercase or
+ // lowercase), numbers, and the following special characters: `.`, `-`, `_`,
+ // `+`, `%`, and `~`.
+ Name string `json:"name,omitempty"`
+ // Subjects: Optional. The subjects of the context.
+ Subjects []string `json:"subjects,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Name") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s Context) MarshalJSON() ([]byte, error) {
+ type NoMethod Context
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// CreateSchemaRegistryRequest: Request to create a schema registry instance.
+type CreateSchemaRegistryRequest struct {
+ // SchemaRegistry: Required. The schema registry instance to create. The name
+ // field is ignored.
+ SchemaRegistry *SchemaRegistry `json:"schemaRegistry,omitempty"`
+ // SchemaRegistryId: Required. The schema registry instance ID to use for this
+ // schema registry. The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ // and underscores (-). The maximum length is 63 characters. The ID must not
+ // start with a number.
+ SchemaRegistryId string `json:"schemaRegistryId,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "SchemaRegistry") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "SchemaRegistry") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s CreateSchemaRegistryRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod CreateSchemaRegistryRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// CreateVersionRequest: Request for CreateVersion.
+type CreateVersionRequest struct {
+ // Id: Optional. The schema ID of the schema. If not specified, the schema ID
+ // will be generated by the server. If the schema ID is specified, it must not
+ // be used by an existing schema that is different from the schema to be
+ // created.
+ Id int64 `json:"id,omitempty"`
+ // Normalize: Optional. If true, the schema will be normalized before being
+ // stored. The default is false.
+ Normalize bool `json:"normalize,omitempty"`
+ // References: Optional. The schema references used by the schema.
+ References []*SchemaReference `json:"references,omitempty"`
+ // Schema: Required. The schema payload
+ Schema string `json:"schema,omitempty"`
+ // SchemaType: Optional. The type of the schema. It is optional. If not
+ // specified, the schema type will be AVRO.
+ //
+ // Possible values:
+ // "SCHEMA_TYPE_UNSPECIFIED" - No schema type. The default will be AVRO.
+ // "AVRO" - Avro schema type.
+ // "JSON" - JSON schema type.
+ // "PROTOBUF" - Protobuf schema type.
+ SchemaType string `json:"schemaType,omitempty"`
+ // Version: Optional. The version to create. It is optional. If not specified,
+ // the version will be created with the max version ID of the subject increased
+ // by 1. If the version ID is specified, it will be used as the new version ID
+ // and must not be used by an existing version of the subject.
+ Version int64 `json:"version,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Id") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Id") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s CreateVersionRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod CreateVersionRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// CreateVersionResponse: Response for CreateVersion.
+type CreateVersionResponse struct {
+ // Id: The unique identifier of the schema created.
+ Id int64 `json:"id,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Id") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Id") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s CreateVersionResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod CreateVersionResponse
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated empty messages in your APIs. A typical example is to use it as
// the request or the response type of an API method. For instance: service Foo
@@ -805,6 +1264,53 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// HttpBody: Message that represents an arbitrary HTTP body. It should only be
+// used for payload formats that can't be represented as JSON, such as raw
+// binary or an HTML page. This message can be used both in streaming and
+// non-streaming API methods in the request as well as the response. It can be
+// used as a top-level request field, which is convenient if one wants to
+// extract parameters from either the URL or HTTP template into the request
+// fields and also want access to the raw HTTP body. Example: message
+// GetResourceRequest { // A unique request id. string request_id = 1; // The
+// raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
+// service ResourceService { rpc GetResource(GetResourceRequest) returns
+// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
+// (google.protobuf.Empty); } Example with streaming methods: service
+// CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
+// google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
+// (stream google.api.HttpBody); } Use of this type only changes how the
+// request and response bodies are handled, all other features will continue to
+// work unchanged.
+type HttpBody struct {
+ // ContentType: The HTTP Content-Type header value specifying the content type
+ // of the body.
+ ContentType string `json:"contentType,omitempty"`
+ // Data: The HTTP request/response body as raw binary.
+ Data string `json:"data,omitempty"`
+ // Extensions: Application specific response metadata. Must be set in the first
+ // response for streaming APIs.
+ Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "ContentType") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "ContentType") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s HttpBody) MarshalJSON() ([]byte, error) {
+ type NoMethod HttpBody
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// ListAclsResponse: Response for ListAcls.
type ListAclsResponse struct {
// Acls: The list of acls in the requested parent. The order of the acls is
@@ -1007,6 +1513,31 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// ListSchemaRegistriesResponse: Request for ListSchemaRegistries.
+type ListSchemaRegistriesResponse struct {
+ // SchemaRegistries: The schema registry instances.
+ SchemaRegistries []*SchemaRegistry `json:"schemaRegistries,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "SchemaRegistries") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "SchemaRegistries") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s ListSchemaRegistriesResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListSchemaRegistriesResponse
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// ListTopicsResponse: Response for ListTopics.
type ListTopicsResponse struct {
// NextPageToken: A token that can be sent as `page_token` to retrieve the next
@@ -1074,6 +1605,45 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// LookupVersionRequest: Request for LookupVersion.
+type LookupVersionRequest struct {
+ // Deleted: Optional. If true, soft-deleted versions will be included in
+ // lookup, no matter if the subject is active or soft-deleted. If false,
+ // soft-deleted versions will be excluded. The default is false.
+ Deleted bool `json:"deleted,omitempty"`
+ // Normalize: Optional. If true, the schema will be normalized before being
+ // looked up. The default is false.
+ Normalize bool `json:"normalize,omitempty"`
+ // References: Optional. The schema references used by the schema.
+ References []*SchemaReference `json:"references,omitempty"`
+ // Schema: Required. The schema payload
+ Schema string `json:"schema,omitempty"`
+ // SchemaType: Optional. The schema type of the schema.
+ //
+ // Possible values:
+ // "SCHEMA_TYPE_UNSPECIFIED" - No schema type. The default will be AVRO.
+ // "AVRO" - Avro schema type.
+ // "JSON" - JSON schema type.
+ // "PROTOBUF" - Protobuf schema type.
+ SchemaType string `json:"schemaType,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Deleted") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Deleted") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s LookupVersionRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod LookupVersionRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// NetworkConfig: The configuration of a Virtual Private Cloud (VPC) network
// that can access the Kafka cluster.
type NetworkConfig struct {
@@ -1275,6 +1845,225 @@
googleapi.ServerResponse `json:"-"`
}
+// Schema: Schema for a Kafka message.
+type Schema struct {
+ // References: Optional. The schema references used by the schema.
+ References []*SchemaReference `json:"references,omitempty"`
+ // Schema: The schema payload.
+ Schema string `json:"schema,omitempty"`
+ // SchemaType: Optional. The schema type of the schema.
+ //
+ // Possible values:
+ // "SCHEMA_TYPE_UNSPECIFIED" - No schema type. The default will be AVRO.
+ // "AVRO" - Avro schema type.
+ // "JSON" - JSON schema type.
+ // "PROTOBUF" - Protobuf schema type.
+ SchemaType string `json:"schemaType,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "References") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "References") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s Schema) MarshalJSON() ([]byte, error) {
+ type NoMethod Schema
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// SchemaConfig: SchemaConfig represents configuration for a schema registry or
+// a specific subject.
+type SchemaConfig struct {
+ // Alias: Optional. The subject to which this subject is an alias of. Only
+ // applicable for subject config.
+ Alias string `json:"alias,omitempty"`
+ // Compatibility: Required. The compatibility type of the schema. The default
+ // value is BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults
+ // to the global value. If unset in a SchemaRegistry-level SchemaConfig,
+ // reverts to the default value.
+ //
+ // Possible values:
+ // "NONE" - No compatibility check.
+ // "BACKWARD" - Backwards compatible with the most recent version.
+ // "BACKWARD_TRANSITIVE" - Backwards compatible with all previous versions.
+ // "FORWARD" - Forwards compatible with the most recent version.
+ // "FORWARD_TRANSITIVE" - Forwards compatible with all previous versions.
+ // "FULL" - Backwards and forwards compatible with the most recent version.
+ // "FULL_TRANSITIVE" - Backwards and forwards compatible with all previous
+ // versions.
+ Compatibility string `json:"compatibility,omitempty"`
+ // Normalize: Optional. If true, the schema will be normalized before being
+ // stored or looked up. The default is false. If unset in a SchemaSubject-level
+ // SchemaConfig, the global value will be used. If unset in a
+ // SchemaRegistry-level SchemaConfig, reverts to the default value.
+ Normalize bool `json:"normalize,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Alias") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s SchemaConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod SchemaConfig
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// SchemaMode: SchemaMode represents the mode of a schema registry or a
+// specific subject. Four modes are supported: * NONE: This is the default mode
+// for a subject and essentially means that the subject does not have any mode
+// set. This means the subject will follow the schema registry's mode. *
+// READONLY: The schema registry is in read-only mode. * READWRITE: The schema
+// registry is in read-write mode, which allows limited write operations on the
+// schema. * IMPORT: The schema registry is in import mode, which allows more
+// editing operations on the schema for data importing purposes.
+type SchemaMode struct {
+ // Mode: Required. The mode type of a schema registry (READWRITE by default) or
+ // of a subject (NONE by default, which means use the global schema registry
+ // setting).
+ //
+ // Possible values:
+ // "NONE" - No mode.
+ // "READONLY" - READONLY mode.
+ // "READWRITE" - READWRITE mode.
+ // "IMPORT" - IMPORT mode.
+ Mode string `json:"mode,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Mode") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s SchemaMode) MarshalJSON() ([]byte, error) {
+ type NoMethod SchemaMode
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// SchemaReference: SchemaReference is a reference to a schema.
+type SchemaReference struct {
+ // Name: Required. The name of the reference.
+ Name string `json:"name,omitempty"`
+ // Subject: Required. The subject of the reference.
+ Subject string `json:"subject,omitempty"`
+ // Version: Required. The version of the reference.
+ Version int64 `json:"version,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Name") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s SchemaReference) MarshalJSON() ([]byte, error) {
+ type NoMethod SchemaReference
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// SchemaRegistry: SchemaRegistry is a schema registry instance.
+type SchemaRegistry struct {
+ // Contexts: Output only. The contexts of the schema registry instance.
+ Contexts []string `json:"contexts,omitempty"`
+ // Name: Identifier. The name of the schema registry instance. Structured like:
+ // `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`
+ // The instance name {schema_registry} can contain the following: * Up to 255
+ // characters. * Letters (uppercase or lowercase), numbers, and underscores.
+ Name string `json:"name,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Contexts") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Contexts") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s SchemaRegistry) MarshalJSON() ([]byte, error) {
+ type NoMethod SchemaRegistry
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// SchemaVersion: Version of a schema.
+type SchemaVersion struct {
+ // Id: Required. The schema ID.
+ Id int64 `json:"id,omitempty"`
+ // References: Optional. The schema references used by the schema.
+ References []*SchemaReference `json:"references,omitempty"`
+ // Schema: Required. The schema payload.
+ Schema string `json:"schema,omitempty"`
+ // SchemaType: Optional. The schema type of the schema.
+ //
+ // Possible values:
+ // "SCHEMA_TYPE_UNSPECIFIED" - No schema type. The default will be AVRO.
+ // "AVRO" - Avro schema type.
+ // "JSON" - JSON schema type.
+ // "PROTOBUF" - Protobuf schema type.
+ SchemaType string `json:"schemaType,omitempty"`
+ // Subject: Required. The subject of the version.
+ Subject string `json:"subject,omitempty"`
+ // Version: Required. The version ID
+ Version int64 `json:"version,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "Id") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Id") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s SchemaVersion) MarshalJSON() ([]byte, error) {
+ type NoMethod SchemaVersion
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// Status: The `Status` type defines a logical error model that is suitable for
// different programming environments, including REST APIs and RPC APIs. It is
// used by gRPC (https://github.com/grpc). Each `Status` message contains three
@@ -1391,6 +2180,77 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// UpdateSchemaConfigRequest: Request for updating schema config. On a
+// SchemaSubject-level SchemaConfig, an unset field will be removed from the
+// SchemaConfig.
+type UpdateSchemaConfigRequest struct {
+ // Compatibility: Required. The compatibility type of the schemas. Cannot be
+ // unset for a SchemaRegistry-level SchemaConfig. If unset on a
+ // SchemaSubject-level SchemaConfig, removes the compatibility field for the
+ // SchemaConfig.
+ //
+ // Possible values:
+ // "NONE" - No compatibility check.
+ // "BACKWARD" - Backwards compatible with the most recent version.
+ // "BACKWARD_TRANSITIVE" - Backwards compatible with all previous versions.
+ // "FORWARD" - Forwards compatible with the most recent version.
+ // "FORWARD_TRANSITIVE" - Forwards compatible with all previous versions.
+ // "FULL" - Backwards and forwards compatible with the most recent version.
+ // "FULL_TRANSITIVE" - Backwards and forwards compatible with all previous
+ // versions.
+ Compatibility string `json:"compatibility,omitempty"`
+ // Normalize: Optional. If true, the schema will be normalized before being
+ // stored or looked up. The default is false. Cannot be unset for a
+ // SchemaRegistry-level SchemaConfig. If unset on a SchemaSubject-level
+ // SchemaConfig, removes the normalize field for the SchemaConfig.
+ Normalize bool `json:"normalize,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Compatibility") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Compatibility") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s UpdateSchemaConfigRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateSchemaConfigRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// UpdateSchemaModeRequest: Request for updating schema registry or subject
+// mode.
+type UpdateSchemaModeRequest struct {
+ // Mode: Required. The mode type.
+ //
+ // Possible values:
+ // "NONE" - No mode.
+ // "READONLY" - READONLY mode.
+ // "READWRITE" - READWRITE mode.
+ // "IMPORT" - IMPORT mode.
+ Mode string `json:"mode,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Mode") to include in API requests
+ // with the JSON null value. By default, fields with empty values are omitted
+ // from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s UpdateSchemaModeRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod UpdateSchemaModeRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
type ProjectsLocationsGetCall struct {
s *Service
name string
@@ -6336,3 +7196,5312 @@
c.PageToken(x.NextPageToken)
}
}
+
+type ProjectsLocationsSchemaRegistriesCreateCall struct {
+ s *Service
+ parent string
+ createschemaregistryrequest *CreateSchemaRegistryRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Create: Create a schema registry instance.
+//
+// - parent: The parent whose schema registry instance is to be created.
+// Structured like: `projects/{project}/locations/{location}`.
+func (r *ProjectsLocationsSchemaRegistriesService) Create(parent string, createschemaregistryrequest *CreateSchemaRegistryRequest) *ProjectsLocationsSchemaRegistriesCreateCall {
+ c := &ProjectsLocationsSchemaRegistriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.createschemaregistryrequest = createschemaregistryrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesCreateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesCreateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesCreateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesCreateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.createschemaregistryrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemaRegistries")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.create", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.create" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaRegistry.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesCreateCall) Do(opts ...googleapi.CallOption) (*SchemaRegistry, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaRegistry{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.create", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete a schema registry instance.
+//
+// - name: The name of the schema registry instance to delete. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// `.
+func (r *ProjectsLocationsSchemaRegistriesService) Delete(name string) *ProjectsLocationsSchemaRegistriesDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Empty.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Empty{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get the schema registry instance.
+//
+// - name: The name of the schema registry instance to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// `.
+func (r *ProjectsLocationsSchemaRegistriesService) Get(name string) *ProjectsLocationsSchemaRegistriesGetCall {
+ c := &ProjectsLocationsSchemaRegistriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaRegistry.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesGetCall) Do(opts ...googleapi.CallOption) (*SchemaRegistry, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaRegistry{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List schema registries.
+//
+// - parent: The parent whose schema registry instances are to be listed.
+// Structured like: `projects/{project}/locations/{location}`.
+func (r *ProjectsLocationsSchemaRegistriesService) List(parent string) *ProjectsLocationsSchemaRegistriesListCall {
+ c := &ProjectsLocationsSchemaRegistriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemaRegistries")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *ListSchemaRegistriesResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesListCall) Do(opts ...googleapi.CallOption) (*ListSchemaRegistriesResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &ListSchemaRegistriesResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall struct {
+ s *Service
+ name string
+ checkcompatibilityrequest *CheckCompatibilityRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// CheckCompatibility: Check compatibility of a schema with all versions or a
+// specific version of a subject.
+//
+// - name: The name of the resource to check compatibility for. The format is
+// either of following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// compatibility/subjects/*/versions: Check compatibility with one or more
+// versions of the specified subject. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// compatibility/subjects/{subject}/versions/{version}: Check compatibility
+// with a specific version of the subject.
+func (r *ProjectsLocationsSchemaRegistriesCompatibilityService) CheckCompatibility(name string, checkcompatibilityrequest *CheckCompatibilityRequest) *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall {
+ c := &ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.checkcompatibilityrequest = checkcompatibilityrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.checkcompatibilityrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.compatibility.checkCompatibility", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.compatibility.checkCompatibility" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *CheckCompatibilityResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesCompatibilityCheckCompatibilityCall) Do(opts ...googleapi.CallOption) (*CheckCompatibilityResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &CheckCompatibilityResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.compatibility.checkCompatibility", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesConfigDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete schema config for a subject.
+//
+// - name: The resource name of subject to delete the config for. The format is
+// *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}.
+func (r *ProjectsLocationsSchemaRegistriesConfigService) Delete(name string) *ProjectsLocationsSchemaRegistriesConfigDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesConfigDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesConfigDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesConfigDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesConfigDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesConfigDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesConfigDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesConfigDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.config.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesConfigDeleteCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesConfigGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get schema config at global level or for a subject.
+//
+// - name: The resource name to get the config for. It can be either of
+// following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config: Get config at global level. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}: Get config for a specific subject.
+func (r *ProjectsLocationsSchemaRegistriesConfigService) Get(name string) *ProjectsLocationsSchemaRegistriesConfigGetCall {
+ c := &ProjectsLocationsSchemaRegistriesConfigGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// DefaultToGlobal sets the optional parameter "defaultToGlobal": If true, the
+// config will fall back to the config at the global level if no subject level
+// config is found.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) DefaultToGlobal(defaultToGlobal bool) *ProjectsLocationsSchemaRegistriesConfigGetCall {
+ c.urlParams_.Set("defaultToGlobal", fmt.Sprint(defaultToGlobal))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesConfigGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesConfigGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesConfigGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.config.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesConfigGetCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesConfigUpdateCall struct {
+ s *Service
+ name string
+ updateschemaconfigrequest *UpdateSchemaConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Update config at global level or for a subject. Creates a
+// SchemaSubject-level SchemaConfig if it does not exist.
+//
+// - name: The resource name to update the config for. It can be either of
+// following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config: Update config at global level. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}: Update config for a specific subject.
+func (r *ProjectsLocationsSchemaRegistriesConfigService) Update(name string, updateschemaconfigrequest *UpdateSchemaConfigRequest) *ProjectsLocationsSchemaRegistriesConfigUpdateCall {
+ c := &ProjectsLocationsSchemaRegistriesConfigUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.updateschemaconfigrequest = updateschemaconfigrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesConfigUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesConfigUpdateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesConfigUpdateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesConfigUpdateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesConfigUpdateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesConfigUpdateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.updateschemaconfigrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PUT", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.update", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.config.update" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesConfigUpdateCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.config.update", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get the context.
+//
+// - name: The name of the context to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsService) Get(name string) *ProjectsLocationsSchemaRegistriesContextsGetCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Context.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsGetCall) Do(opts ...googleapi.CallOption) (*Context, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Context{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List contexts for a schema registry.
+//
+// - parent: The parent of the contexts. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// `.
+func (r *ProjectsLocationsSchemaRegistriesContextsService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contexts")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall struct {
+ s *Service
+ name string
+ checkcompatibilityrequest *CheckCompatibilityRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// CheckCompatibility: Check compatibility of a schema with all versions or a
+// specific version of a subject.
+//
+// - name: The name of the resource to check compatibility for. The format is
+// either of following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// compatibility/subjects/*/versions: Check compatibility with one or more
+// versions of the specified subject. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// compatibility/subjects/{subject}/versions/{version}: Check compatibility
+// with a specific version of the subject.
+func (r *ProjectsLocationsSchemaRegistriesContextsCompatibilityService) CheckCompatibility(name string, checkcompatibilityrequest *CheckCompatibilityRequest) *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.checkcompatibilityrequest = checkcompatibilityrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.checkcompatibilityrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.compatibility.checkCompatibility", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.compatibility.checkCompatibility" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *CheckCompatibilityResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsCompatibilityCheckCompatibilityCall) Do(opts ...googleapi.CallOption) (*CheckCompatibilityResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &CheckCompatibilityResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.compatibility.checkCompatibility", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete schema config for a subject.
+//
+// - name: The resource name of subject to delete the config for. The format is
+// *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}.
+func (r *ProjectsLocationsSchemaRegistriesContextsConfigService) Delete(name string) *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.config.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigDeleteCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsConfigGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get schema config at global level or for a subject.
+//
+// - name: The resource name to get the config for. It can be either of
+// following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config: Get config at global level. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}: Get config for a specific subject.
+func (r *ProjectsLocationsSchemaRegistriesContextsConfigService) Get(name string) *ProjectsLocationsSchemaRegistriesContextsConfigGetCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsConfigGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// DefaultToGlobal sets the optional parameter "defaultToGlobal": If true, the
+// config will fall back to the config at the global level if no subject level
+// config is found.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) DefaultToGlobal(defaultToGlobal bool) *ProjectsLocationsSchemaRegistriesContextsConfigGetCall {
+ c.urlParams_.Set("defaultToGlobal", fmt.Sprint(defaultToGlobal))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsConfigGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsConfigGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsConfigGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.config.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigGetCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall struct {
+ s *Service
+ name string
+ updateschemaconfigrequest *UpdateSchemaConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Update config at global level or for a subject. Creates a
+// SchemaSubject-level SchemaConfig if it does not exist.
+//
+// - name: The resource name to update the config for. It can be either of
+// following: *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config: Update config at global level. *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// config/{subject}: Update config for a specific subject.
+func (r *ProjectsLocationsSchemaRegistriesContextsConfigService) Update(name string, updateschemaconfigrequest *UpdateSchemaConfigRequest) *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.updateschemaconfigrequest = updateschemaconfigrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.updateschemaconfigrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PUT", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.update", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.config.update" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaConfig.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsConfigUpdateCall) Do(opts ...googleapi.CallOption) (*SchemaConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.config.update", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsModeGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get mode at global level or for a subject.
+//
+// - name: The resource name of the mode. The format is *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// mode/{subject}: mode for a schema registry, or *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// contexts/{context}/mode/{subject}: mode for a specific subject in a
+// specific context.
+func (r *ProjectsLocationsSchemaRegistriesContextsModeService) Get(name string) *ProjectsLocationsSchemaRegistriesContextsModeGetCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsModeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsModeGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsModeGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsModeGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.mode.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.mode.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaMode.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeGetCall) Do(opts ...googleapi.CallOption) (*SchemaMode, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaMode{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.mode.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsModeUpdateCall struct {
+ s *Service
+ name string
+ updateschemamoderequest *UpdateSchemaModeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Update mode at global level or for a subject.
+//
+// - name: The resource name of the mode. The format is *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// mode/{subject}: mode for a schema registry, or *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// contexts/{context}/mode/{subject}: mode for a specific subject in a
+// specific context.
+func (r *ProjectsLocationsSchemaRegistriesContextsModeService) Update(name string, updateschemamoderequest *UpdateSchemaModeRequest) *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsModeUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.updateschemamoderequest = updateschemamoderequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.updateschemamoderequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PUT", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.mode.update", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.mode.update" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaMode.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsModeUpdateCall) Do(opts ...googleapi.CallOption) (*SchemaMode, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaMode{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.mode.update", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get the schema for the given schema id.
+//
+// - name: The name of the schema to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSchemasService) Get(name string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Subject sets the optional parameter "subject": Used to limit the search for
+// the schema ID to a specific subject, otherwise the schema ID will be
+// searched for in all subjects in the given specified context.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.schemas.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Schema.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetCall) Do(opts ...googleapi.CallOption) (*Schema, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Schema{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetSchema: Get the schema string for the given schema id. The response will
+// be the schema string.
+//
+// - name: The name of the schema to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSchemasService) GetSchema(name string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Subject sets the optional parameter "subject": Used to limit the search for
+// the schema ID to a specific subject, otherwise the schema ID will be
+// searched for in all subjects in the given specified context.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/schema")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.getSchema", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.schemas.getSchema" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasGetSchemaCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.getSchema", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List subjects which reference a particular schema id. The response
+// will be an array of subject names.
+//
+// - parent: The schema resource whose associated subjects are to be listed.
+// Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted subjects. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Subject sets the optional parameter "subject": The subject to filter the
+// subjects by.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subjects")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.subjects.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.schemas.subjects.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasSubjectsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.subjects.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List the supported schema types. The response will be an array of
+// schema types.
+//
+// - parent: The parent schema registry whose schema types are to be listed.
+// Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// `.
+func (r *ProjectsLocationsSchemaRegistriesContextsSchemasTypesService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas/types")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.types.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.schemas.types.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasTypesListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.types.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List the schema versions for the given schema id. The response will be
+// an array of subject-version pairs as: [{"subject":"subject1", "version":1},
+// {"subject":"subject2", "version":2}].
+//
+// - parent: The schema whose schema versions are to be listed. Structured
+// like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted versions of the schema, even if the subject is
+// soft-deleted. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Subject sets the optional parameter "subject": The subject to filter the
+// subjects by.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.versions.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.schemas.versions.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSchemasVersionsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.schemas.versions.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete a subject. The response will be an array of versions of the
+// deleted subject.
+//
+// - name: The name of the subject to delete. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsService) Delete(name string) *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Permanent sets the optional parameter "permanent": If true, the subject and
+// all associated metadata including the schema ID will be deleted permanently.
+// Otherwise, only the subject is soft-deleted. The default is false.
+// Soft-deleted subjects can still be searched in ListSubjects API call with
+// deleted=true query parameter. A soft-delete of a subject must be performed
+// before a hard-delete.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) Permanent(permanent bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall {
+ c.urlParams_.Set("permanent", fmt.Sprint(permanent))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsDeleteCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List subjects in the schema registry. The response will be an array of
+// subject names.
+//
+// - parent: The parent schema registry/context whose subjects are to be
+// listed. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// ` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted subjects. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// SubjectPrefix sets the optional parameter "subjectPrefix": The context to
+// filter the subjects by, in the format of `:.{context}:`. If unset, all
+// subjects in the registry are returned. Set to empty string or add as
+// '?subjectPrefix=' at the end of this request to list subjects in the default
+// context.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) SubjectPrefix(subjectPrefix string) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c.urlParams_.Set("subjectPrefix", subjectPrefix)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subjects")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall struct {
+ s *Service
+ parent string
+ lookupversionrequest *LookupVersionRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// LookupVersion: Lookup a schema under the specified subject.
+//
+// - parent: The subject to lookup the schema in. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsService) LookupVersion(parent string, lookupversionrequest *LookupVersionRequest) *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.lookupversionrequest = lookupversionrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.lookupversionrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.lookupVersion", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.lookupVersion" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaVersion.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsLookupVersionCall) Do(opts ...googleapi.CallOption) (*SchemaVersion, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaVersion{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.lookupVersion", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall struct {
+ s *Service
+ parent string
+ createversionrequest *CreateVersionRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Create: Register a new version under a given subject with the given schema.
+//
+// - parent: The subject to create the version for. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService) Create(parent string, createversionrequest *CreateVersionRequest) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.createversionrequest = createversionrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.createversionrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.create", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.create" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *CreateVersionResponse.ServerResponse.Header or (if a response was returned
+// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
+// check whether the returned error was because http.StatusNotModified was
+// returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*CreateVersionResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &CreateVersionResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.create", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete a version of a subject. The response will be the deleted
+// version id.
+//
+// - name: The name of the subject version to delete. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService) Delete(name string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Permanent sets the optional parameter "permanent": If true, both the version
+// and the referenced schema ID will be permanently deleted. The default is
+// false. If false, the version will be deleted but the schema ID will be
+// retained. Soft-deleted versions can still be searched in ListVersions API
+// call with deleted=true query parameter. A soft-delete of a version must be
+// performed before a hard-delete.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) Permanent(permanent bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall {
+ c.urlParams_.Set("permanent", fmt.Sprint(permanent))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get a versioned schema (schema with subject/version) of a subject.
+//
+// - name: The name of the subject to return versions. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService) Get(name string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, no matter if the
+// subject/version is soft-deleted or not, it returns the version details. If
+// false, it returns NOT_FOUND error if the subject/version is soft-deleted.
+// The default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaVersion.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetCall) Do(opts ...googleapi.CallOption) (*SchemaVersion, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaVersion{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetSchema: Get the schema string only for a version of a subject. The
+// response will be the schema string.
+//
+// - name: The name of the subject to return versions. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService) GetSchema(name string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, no matter if the
+// subject/version is soft-deleted or not, it returns the version details. If
+// false, it returns NOT_FOUND error if the subject/version is soft-deleted.
+// The default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/schema")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.getSchema", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.getSchema" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsGetSchemaCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.getSchema", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Get all versions of a subject. The response will be an array of
+// versions of the subject.
+//
+// - parent: The subject whose versions are to be listed. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted versions of an active or soft-deleted subject. The
+// default is false.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Get a list of IDs of schemas that reference the schema with the given
+// subject and version.
+//
+// - parent: The version to list referenced by. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyService) List(parent string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall {
+ c := &ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/referencedby")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.referencedby.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.referencedby.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesContextsSubjectsVersionsReferencedbyListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.contexts.subjects.versions.referencedby.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesModeGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get mode at global level or for a subject.
+//
+// - name: The resource name of the mode. The format is *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// mode/{subject}: mode for a schema registry, or *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// contexts/{context}/mode/{subject}: mode for a specific subject in a
+// specific context.
+func (r *ProjectsLocationsSchemaRegistriesModeService) Get(name string) *ProjectsLocationsSchemaRegistriesModeGetCall {
+ c := &ProjectsLocationsSchemaRegistriesModeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesModeGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesModeGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesModeGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.mode.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.mode.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaMode.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesModeGetCall) Do(opts ...googleapi.CallOption) (*SchemaMode, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaMode{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.mode.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesModeUpdateCall struct {
+ s *Service
+ name string
+ updateschemamoderequest *UpdateSchemaModeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Update: Update mode at global level or for a subject.
+//
+// - name: The resource name of the mode. The format is *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// mode/{subject}: mode for a schema registry, or *
+// projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/
+// contexts/{context}/mode/{subject}: mode for a specific subject in a
+// specific context.
+func (r *ProjectsLocationsSchemaRegistriesModeService) Update(name string, updateschemamoderequest *UpdateSchemaModeRequest) *ProjectsLocationsSchemaRegistriesModeUpdateCall {
+ c := &ProjectsLocationsSchemaRegistriesModeUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ c.updateschemamoderequest = updateschemamoderequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesModeUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesModeUpdateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesModeUpdateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesModeUpdateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesModeUpdateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesModeUpdateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.updateschemamoderequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PUT", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.mode.update", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.mode.update" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaMode.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesModeUpdateCall) Do(opts ...googleapi.CallOption) (*SchemaMode, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaMode{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.mode.update", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get the schema for the given schema id.
+//
+// - name: The name of the schema to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesSchemasService) Get(name string) *ProjectsLocationsSchemaRegistriesSchemasGetCall {
+ c := &ProjectsLocationsSchemaRegistriesSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Subject sets the optional parameter "subject": Used to limit the search for
+// the schema ID to a specific subject, otherwise the schema ID will be
+// searched for in all subjects in the given specified context.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesSchemasGetCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSchemasGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSchemasGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSchemasGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.schemas.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Schema.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetCall) Do(opts ...googleapi.CallOption) (*Schema, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Schema{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetSchema: Get the schema string for the given schema id. The response will
+// be the schema string.
+//
+// - name: The name of the schema to return. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesSchemasService) GetSchema(name string) *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall {
+ c := &ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Subject sets the optional parameter "subject": Used to limit the search for
+// the schema ID to a specific subject, otherwise the schema ID will be
+// searched for in all subjects in the given specified context.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/schema")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.getSchema", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.schemas.getSchema" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSchemasGetSchemaCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.getSchema", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List subjects which reference a particular schema id. The response
+// will be an array of subject names.
+//
+// - parent: The schema resource whose associated subjects are to be listed.
+// Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesSchemasSubjectsService) List(parent string) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c := &ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted subjects. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Subject sets the optional parameter "subject": The subject to filter the
+// subjects by.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subjects")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.subjects.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.schemas.subjects.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSchemasSubjectsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.subjects.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasTypesListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List the supported schema types. The response will be an array of
+// schema types.
+//
+// - parent: The parent schema registry whose schema types are to be listed.
+// Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// `.
+func (r *ProjectsLocationsSchemaRegistriesSchemasTypesService) List(parent string) *ProjectsLocationsSchemaRegistriesSchemasTypesListCall {
+ c := &ProjectsLocationsSchemaRegistriesSchemasTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSchemasTypesListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSchemasTypesListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSchemasTypesListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas/types")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.types.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.schemas.types.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSchemasTypesListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.types.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSchemasVersionsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List the schema versions for the given schema id. The response will be
+// an array of subject-version pairs as: [{"subject":"subject1", "version":1},
+// {"subject":"subject2", "version":2}].
+//
+// - parent: The schema whose schema versions are to be listed. Structured
+// like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /schemas/ids/{schema}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/schemas/ids/{schema}`.
+func (r *ProjectsLocationsSchemaRegistriesSchemasVersionsService) List(parent string) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c := &ProjectsLocationsSchemaRegistriesSchemasVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted versions of the schema, even if the subject is
+// soft-deleted. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Subject sets the optional parameter "subject": The subject to filter the
+// subjects by.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Subject(subject string) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c.urlParams_.Set("subject", subject)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.versions.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.schemas.versions.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSchemasVersionsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.schemas.versions.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete a subject. The response will be an array of versions of the
+// deleted subject.
+//
+// - name: The name of the subject to delete. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsService) Delete(name string) *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Permanent sets the optional parameter "permanent": If true, the subject and
+// all associated metadata including the schema ID will be deleted permanently.
+// Otherwise, only the subject is soft-deleted. The default is false.
+// Soft-deleted subjects can still be searched in ListSubjects API call with
+// deleted=true query parameter. A soft-delete of a subject must be performed
+// before a hard-delete.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) Permanent(permanent bool) *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall {
+ c.urlParams_.Set("permanent", fmt.Sprint(permanent))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsDeleteCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: List subjects in the schema registry. The response will be an array of
+// subject names.
+//
+// - parent: The parent schema registry/context whose subjects are to be
+// listed. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// ` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsService) List(parent string) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted subjects. The default is false.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// SubjectPrefix sets the optional parameter "subjectPrefix": The context to
+// filter the subjects by, in the format of `:.{context}:`. If unset, all
+// subjects in the registry are returned. Set to empty string or add as
+// '?subjectPrefix=' at the end of this request to list subjects in the default
+// context.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) SubjectPrefix(subjectPrefix string) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c.urlParams_.Set("subjectPrefix", subjectPrefix)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subjects")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall struct {
+ s *Service
+ parent string
+ lookupversionrequest *LookupVersionRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// LookupVersion: Lookup a schema under the specified subject.
+//
+// - parent: The subject to lookup the schema in. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsService) LookupVersion(parent string, lookupversionrequest *LookupVersionRequest) *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.lookupversionrequest = lookupversionrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.lookupversionrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.lookupVersion", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.lookupVersion" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaVersion.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsLookupVersionCall) Do(opts ...googleapi.CallOption) (*SchemaVersion, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaVersion{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.lookupVersion", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall struct {
+ s *Service
+ parent string
+ createversionrequest *CreateVersionRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Create: Register a new version under a given subject with the given schema.
+//
+// - parent: The subject to create the version for. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsService) Create(parent string, createversionrequest *CreateVersionRequest) *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ c.createversionrequest = createversionrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.createversionrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.create", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.create" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *CreateVersionResponse.ServerResponse.Header or (if a response was returned
+// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
+// check whether the returned error was because http.StatusNotModified was
+// returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*CreateVersionResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &CreateVersionResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.create", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Delete a version of a subject. The response will be the deleted
+// version id.
+//
+// - name: The name of the subject version to delete. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsService) Delete(name string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Permanent sets the optional parameter "permanent": If true, both the version
+// and the referenced schema ID will be permanently deleted. The default is
+// false. If false, the version will be deleted but the schema ID will be
+// retained. Soft-deleted versions can still be searched in ListVersions API
+// call with deleted=true query parameter. A soft-delete of a version must be
+// performed before a hard-delete.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) Permanent(permanent bool) *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall {
+ c.urlParams_.Set("permanent", fmt.Sprint(permanent))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("DELETE", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.delete", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.delete" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.delete", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get a versioned schema (schema with subject/version) of a subject.
+//
+// - name: The name of the subject to return versions. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsService) Get(name string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, no matter if the
+// subject/version is soft-deleted or not, it returns the version details. If
+// false, it returns NOT_FOUND error if the subject/version is soft-deleted.
+// The default is false.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.get", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.get" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *SchemaVersion.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetCall) Do(opts ...googleapi.CallOption) (*SchemaVersion, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &SchemaVersion{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.get", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall struct {
+ s *Service
+ name string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetSchema: Get the schema string only for a version of a subject. The
+// response will be the schema string.
+//
+// - name: The name of the subject to return versions. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsService) GetSchema(name string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.name = name
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, no matter if the
+// subject/version is soft-deleted or not, it returns the version details. If
+// false, it returns NOT_FOUND error if the subject/version is soft-deleted.
+// The default is false.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/schema")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "name": c.name,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.getSchema", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.getSchema" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsGetSchemaCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.getSchema", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Get all versions of a subject. The response will be an array of
+// versions of the subject.
+//
+// - parent: The subject whose versions are to be listed. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsService) List(parent string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Deleted sets the optional parameter "deleted": If true, the response will
+// include soft-deleted versions of an active or soft-deleted subject. The
+// default is false.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) Deleted(deleted bool) *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall {
+ c.urlParams_.Set("deleted", fmt.Sprint(deleted))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall struct {
+ s *Service
+ parent string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Get a list of IDs of schemas that reference the schema with the given
+// subject and version.
+//
+// - parent: The version to list referenced by. Structured like:
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /subjects/{subject}/versions/{version}` or
+// `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}
+// /contexts/{context}/subjects/{subject}/versions/{version}`.
+func (r *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyService) List(parent string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall {
+ c := &ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.parent = parent
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) Context(ctx context.Context) *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/referencedby")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "parent": c.parent,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.referencedby.list", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "managedkafka.projects.locations.schemaRegistries.subjects.versions.referencedby.list" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *HttpBody.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsSchemaRegistriesSubjectsVersionsReferencedbyListCall) Do(opts ...googleapi.CallOption) (*HttpBody, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &HttpBody{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "managedkafka.projects.locations.schemaRegistries.subjects.versions.referencedby.list", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json
index 8fb153d..ea3aabe 100644
--- a/networkconnectivity/v1/networkconnectivity-api.json
+++ b/networkconnectivity/v1/networkconnectivity-api.json
@@ -1366,6 +1366,37 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
+ "getIamPolicy": {
+ "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/internalRanges/{internalRangesId}:getIamPolicy",
+ "httpMethod": "GET",
+ "id": "networkconnectivity.projects.locations.internalRanges.getIamPolicy",
+ "parameterOrder": [
+ "resource"
+ ],
+ "parameters": {
+ "options.requestedPolicyVersion": {
+ "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
+ },
+ "resource": {
+ "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/internalRanges/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+resource}:getIamPolicy",
+ "response": {
+ "$ref": "Policy"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
"list": {
"description": "Lists internal ranges in a given project and location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/internalRanges",
@@ -1450,6 +1481,62 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
+ },
+ "setIamPolicy": {
+ "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/internalRanges/{internalRangesId}:setIamPolicy",
+ "httpMethod": "POST",
+ "id": "networkconnectivity.projects.locations.internalRanges.setIamPolicy",
+ "parameterOrder": [
+ "resource"
+ ],
+ "parameters": {
+ "resource": {
+ "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/internalRanges/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+resource}:setIamPolicy",
+ "request": {
+ "$ref": "SetIamPolicyRequest"
+ },
+ "response": {
+ "$ref": "Policy"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "testIamPermissions": {
+ "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.",
+ "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/internalRanges/{internalRangesId}:testIamPermissions",
+ "httpMethod": "POST",
+ "id": "networkconnectivity.projects.locations.internalRanges.testIamPermissions",
+ "parameterOrder": [
+ "resource"
+ ],
+ "parameters": {
+ "resource": {
+ "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/locations/[^/]+/internalRanges/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+resource}:testIamPermissions",
+ "request": {
+ "$ref": "TestIamPermissionsRequest"
+ },
+ "response": {
+ "$ref": "TestIamPermissionsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
},
@@ -2925,7 +3012,7 @@
}
}
},
- "revision": "20250502",
+ "revision": "20250512",
"rootUrl": "https://networkconnectivity.googleapis.com/",
"schemas": {
"AcceptHubSpokeRequest": {
@@ -3312,7 +3399,7 @@
"id": "Filter",
"properties": {
"destRange": {
- "description": "Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is \"0.0.0.0/0\" if protocol version is IPv4.",
+ "description": "Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is \"0.0.0.0/0\" if protocol version is IPv4 and \"::/0\" if protocol version is IPv6.",
"type": "string"
},
"ipProtocol": {
@@ -3320,19 +3407,21 @@
"type": "string"
},
"protocolVersion": {
- "description": "Required. Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported. IPV6 is supported in preview.",
+ "description": "Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.",
"enum": [
"PROTOCOL_VERSION_UNSPECIFIED",
- "IPV4"
+ "IPV4",
+ "IPV6"
],
"enumDescriptions": [
"Default value.",
- "The PBR is for IPv4 internet protocol traffic."
+ "The PBR is for IPv4 internet protocol traffic.",
+ "The PBR is for IPv6 internet protocol traffic."
],
"type": "string"
},
"srcRange": {
- "description": "Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is \"0.0.0.0/0\" if protocol version is IPv4.",
+ "description": "Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is \"0.0.0.0/0\" if protocol version is IPv4 and \"::/0\" if protocol version is IPv6.",
"type": "string"
}
},
diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go
index e12708c..9f64202 100644
--- a/networkconnectivity/v1/networkconnectivity-gen.go
+++ b/networkconnectivity/v1/networkconnectivity-gen.go
@@ -912,22 +912,22 @@
type Filter struct {
// DestRange: Optional. The destination IP range of outgoing packets that this
// policy-based route applies to. Default is "0.0.0.0/0" if protocol version is
- // IPv4.
+ // IPv4 and "::/0" if protocol version is IPv6.
DestRange string `json:"destRange,omitempty"`
// IpProtocol: Optional. The IP protocol that this policy-based route applies
// to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
IpProtocol string `json:"ipProtocol,omitempty"`
// ProtocolVersion: Required. Internet protocol versions this policy-based
- // route applies to. For this version, only IPV4 is supported. IPV6 is
- // supported in preview.
+ // route applies to. IPV4 and IPV6 is supported.
//
// Possible values:
// "PROTOCOL_VERSION_UNSPECIFIED" - Default value.
// "IPV4" - The PBR is for IPv4 internet protocol traffic.
+ // "IPV6" - The PBR is for IPv6 internet protocol traffic.
ProtocolVersion string `json:"protocolVersion,omitempty"`
// SrcRange: Optional. The source IP range of outgoing packets that this
// policy-based route applies to. Default is "0.0.0.0/0" if protocol version is
- // IPv4.
+ // IPv4 and "::/0" if protocol version is IPv6.
SrcRange string `json:"srcRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "DestRange") to
// unconditionally include in API requests. By default, fields with empty or
@@ -8395,6 +8395,135 @@
return ret, nil
}
+type ProjectsLocationsInternalRangesGetIamPolicyCall struct {
+ s *Service
+ resource string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetIamPolicy: Gets the access control policy for a resource. Returns an
+// empty policy if the resource exists and does not have a policy set.
+//
+// - resource: REQUIRED: The resource for which the policy is being requested.
+// See Resource names (https://cloud.google.com/apis/design/resource_names)
+// for the appropriate value for this field.
+func (r *ProjectsLocationsInternalRangesService) GetIamPolicy(resource string) *ProjectsLocationsInternalRangesGetIamPolicyCall {
+ c := &ProjectsLocationsInternalRangesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.resource = resource
+ return c
+}
+
+// OptionsRequestedPolicyVersion sets the optional parameter
+// "options.requestedPolicyVersion": The maximum policy version that will be
+// used to format the policy. Valid values are 0, 1, and 3. Requests specifying
+// an invalid value will be rejected. Requests for policies with any
+// conditional role bindings must specify version 3. Policies with no
+// conditional role bindings may specify any valid value or leave the field
+// unset. The policy in the response might use the policy version that you
+// specified, or it might use a lower policy version. For example, if you
+// specify version 3, but the policy has no conditional role bindings, the
+// response uses version 1. To learn which resources support conditions in
+// their IAM policies, see the IAM documentation
+// (https://cloud.google.com/iam/help/conditions/resource-policies).
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInternalRangesGetIamPolicyCall {
+ c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInternalRangesGetIamPolicyCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets an optional parameter which makes the operation fail if the
+// object's ETag matches the given value. This is useful for getting updates
+// only after the object has changed since the last request.
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsInternalRangesGetIamPolicyCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInternalRangesGetIamPolicyCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "resource": c.resource,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.getIamPolicy", "request", internallog.HTTPRequest(req, nil))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "networkconnectivity.projects.locations.internalRanges.getIamPolicy" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Policy.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Policy{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.getIamPolicy", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
type ProjectsLocationsInternalRangesListCall struct {
s *Service
parent string
@@ -8686,6 +8815,224 @@
return ret, nil
}
+type ProjectsLocationsInternalRangesSetIamPolicyCall struct {
+ s *Service
+ resource string
+ setiampolicyrequest *SetIamPolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetIamPolicy: Sets the access control policy on the specified resource.
+// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
+// and `PERMISSION_DENIED` errors.
+//
+// - resource: REQUIRED: The resource for which the policy is being specified.
+// See Resource names (https://cloud.google.com/apis/design/resource_names)
+// for the appropriate value for this field.
+func (r *ProjectsLocationsInternalRangesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsInternalRangesSetIamPolicyCall {
+ c := &ProjectsLocationsInternalRangesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.resource = resource
+ c.setiampolicyrequest = setiampolicyrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInternalRangesSetIamPolicyCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInternalRangesSetIamPolicyCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.setiampolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "resource": c.resource,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "networkconnectivity.projects.locations.internalRanges.setIamPolicy" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *Policy.ServerResponse.Header or (if a response was returned at all) in
+// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
+// whether the returned error was because http.StatusNotModified was returned.
+func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Policy{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.setIamPolicy", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
+type ProjectsLocationsInternalRangesTestIamPermissionsCall struct {
+ s *Service
+ resource string
+ testiampermissionsrequest *TestIamPermissionsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// TestIamPermissions: Returns permissions that a caller has on the specified
+// resource. If the resource does not exist, this will return an empty set of
+// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
+// used for building permission-aware UIs and command-line tools, not for
+// authorization checking. This operation may "fail open" without warning.
+//
+// - resource: REQUIRED: The resource for which the policy detail is being
+// requested. See Resource names
+// (https://cloud.google.com/apis/design/resource_names) for the appropriate
+// value for this field.
+func (r *ProjectsLocationsInternalRangesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsInternalRangesTestIamPermissionsCall {
+ c := &ProjectsLocationsInternalRangesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.resource = resource
+ c.testiampermissionsrequest = testiampermissionsrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInternalRangesTestIamPermissionsCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsInternalRangesTestIamPermissionsCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testiampermissionsrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "resource": c.resource,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "networkconnectivity.projects.locations.internalRanges.testIamPermissions" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &TestIamPermissionsResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.internalRanges.testIamPermissions", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
+
type ProjectsLocationsOperationsCancelCall struct {
s *Service
name string
diff --git a/people/v1/people-api.json b/people/v1/people-api.json
index d633677..c6ac578 100644
--- a/people/v1/people-api.json
+++ b/people/v1/people-api.json
@@ -998,7 +998,7 @@
]
},
"updateContact": {
- "description": "Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the `update_mask` will be replaced. The server returns a 400 error if `person.metadata.sources` is not specified for the contact to be updated or if there is no contact source. The server returns a 400 error with reason `\"failedPrecondition\"` if `person.metadata.sources.etag` is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and merge their updates into the latest person. The server returns a 400 error if `memberships` are being updated and there are no contact group memberships specified on the person. The server returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.",
+ "description": "Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the `update_mask` will be replaced. The server returns a 400 error if `person.metadata.sources` is not specified for the contact to be updated or if there is no contact source. The server returns a 400 error with reason `\"failedPrecondition\"` if `person.metadata.sources.etag` is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and merge their updates into the latest person. If making sequential updates to the same person, the etag from the `updateContact` response should be used to avoid failures. The server returns a 400 error if `memberships` are being updated and there are no contact group memberships specified on the person. The server returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.",
"flatPath": "v1/people/{peopleId}:updateContact",
"httpMethod": "PATCH",
"id": "people.people.updateContact",
@@ -1190,7 +1190,7 @@
}
}
},
- "revision": "20240313",
+ "revision": "20250513",
"rootUrl": "https://people.googleapis.com/",
"schemas": {
"Address": {
diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go
index f8ba294..e619f45 100644
--- a/people/v1/people-gen.go
+++ b/people/v1/people-gen.go
@@ -5546,13 +5546,15 @@
// The server returns a 400 error with reason "failedPrecondition" if
// `person.metadata.sources.etag` is different than the contact's etag, which
// indicates the contact has changed since its data was read. Clients should
-// get the latest person and merge their updates into the latest person. The
-// server returns a 400 error if `memberships` are being updated and there are
-// no contact group memberships specified on the person. The server returns a
-// 400 error if more than one field is specified on a field that is a singleton
-// for contact sources: * biographies * birthdays * genders * names Mutate
-// requests for the same user should be sent sequentially to avoid increased
-// latency and failures.
+// get the latest person and merge their updates into the latest person. If
+// making sequential updates to the same person, the etag from the
+// `updateContact` response should be used to avoid failures. The server
+// returns a 400 error if `memberships` are being updated and there are no
+// contact group memberships specified on the person. The server returns a 400
+// error if more than one field is specified on a field that is a singleton for
+// contact sources: * biographies * birthdays * genders * names Mutate requests
+// for the same user should be sent sequentially to avoid increased latency and
+// failures.
//
// - resourceName: The resource name for the person, assigned by the server. An
// ASCII string in the form of `people/{person_id}`.
diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json
index 330af926..d6a83eb 100644
--- a/playintegrity/v1/playintegrity-api.json
+++ b/playintegrity/v1/playintegrity-api.json
@@ -166,11 +166,39 @@
"scopes": [
"https://www.googleapis.com/auth/playintegrity"
]
+ },
+ "decodePcIntegrityToken": {
+ "description": "Decodes the PC integrity token and returns the PC token payload.",
+ "flatPath": "v1/{v1Id}:decodePcIntegrityToken",
+ "httpMethod": "POST",
+ "id": "playintegrity.decodePcIntegrityToken",
+ "parameterOrder": [
+ "packageName"
+ ],
+ "parameters": {
+ "packageName": {
+ "description": "Package name of the app the attached integrity token belongs to.",
+ "location": "path",
+ "pattern": "^[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+packageName}:decodePcIntegrityToken",
+ "request": {
+ "$ref": "DecodePcIntegrityTokenRequest"
+ },
+ "response": {
+ "$ref": "DecodePcIntegrityTokenResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/playintegrity"
+ ]
}
}
}
},
- "revision": "20250223",
+ "revision": "20250514",
"rootUrl": "https://playintegrity.googleapis.com/",
"schemas": {
"AccountActivity": {
@@ -324,6 +352,28 @@
},
"type": "object"
},
+ "DecodePcIntegrityTokenRequest": {
+ "description": "Request to decode the PC integrity token.",
+ "id": "DecodePcIntegrityTokenRequest",
+ "properties": {
+ "integrityToken": {
+ "description": "Encoded integrity token.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "DecodePcIntegrityTokenResponse": {
+ "description": "Response containing the decoded PC integrity payload.",
+ "id": "DecodePcIntegrityTokenResponse",
+ "properties": {
+ "tokenPayloadExternal": {
+ "$ref": "PcTokenPayloadExternal",
+ "description": "Plain token payload generated from the decoded integrity token."
+ }
+ },
+ "type": "object"
+ },
"DeviceAttributes": {
"description": "Contains information about the device for which the integrity token was generated, e.g. Android SDK version.",
"id": "DeviceAttributes",
@@ -445,6 +495,63 @@
},
"type": "object"
},
+ "PcDeviceIntegrity": {
+ "description": "Contains the device attestation information.",
+ "id": "PcDeviceIntegrity",
+ "properties": {
+ "deviceRecognitionVerdict": {
+ "description": "Details about the integrity of the device the app is running on.",
+ "items": {
+ "enum": [
+ "DEVICE_RECOGNITION_VERDICT_UNSPECIFIED",
+ "MEETS_PC_INTEGRITY"
+ ],
+ "enumDescriptions": [
+ "Unspecified device integrity.",
+ "App is running on Windows Device with Google Desktop Services."
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "PcRequestDetails": {
+ "description": "Contains the integrity request information.",
+ "id": "PcRequestDetails",
+ "properties": {
+ "requestHash": {
+ "description": "Request hash that was provided in the request.",
+ "type": "string"
+ },
+ "requestPackageName": {
+ "description": "Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.",
+ "type": "string"
+ },
+ "requestTime": {
+ "description": "Required. Timestamp, of the integrity application request.",
+ "format": "google-datetime",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "PcTokenPayloadExternal": {
+ "description": "Contains PC device attestation details.",
+ "id": "PcTokenPayloadExternal",
+ "properties": {
+ "deviceIntegrity": {
+ "$ref": "PcDeviceIntegrity",
+ "description": "Required. Details about the device integrity."
+ },
+ "requestDetails": {
+ "$ref": "PcRequestDetails",
+ "description": "Required. Details about the integrity request."
+ }
+ },
+ "type": "object"
+ },
"RecentDeviceActivity": {
"description": "Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming.",
"id": "RecentDeviceActivity",
diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go
index 6572a60..d354923 100644
--- a/playintegrity/v1/playintegrity-gen.go
+++ b/playintegrity/v1/playintegrity-gen.go
@@ -388,6 +388,55 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// DecodePcIntegrityTokenRequest: Request to decode the PC integrity token.
+type DecodePcIntegrityTokenRequest struct {
+ // IntegrityToken: Encoded integrity token.
+ IntegrityToken string `json:"integrityToken,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "IntegrityToken") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "IntegrityToken") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DecodePcIntegrityTokenRequest) MarshalJSON() ([]byte, error) {
+ type NoMethod DecodePcIntegrityTokenRequest
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// DecodePcIntegrityTokenResponse: Response containing the decoded PC integrity
+// payload.
+type DecodePcIntegrityTokenResponse struct {
+ // TokenPayloadExternal: Plain token payload generated from the decoded
+ // integrity token.
+ TokenPayloadExternal *PcTokenPayloadExternal `json:"tokenPayloadExternal,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the server.
+ googleapi.ServerResponse `json:"-"`
+ // ForceSendFields is a list of field names (e.g. "TokenPayloadExternal") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "TokenPayloadExternal") to include
+ // in API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s DecodePcIntegrityTokenResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod DecodePcIntegrityTokenResponse
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// DeviceAttributes: Contains information about the device for which the
// integrity token was generated, e.g. Android SDK version.
type DeviceAttributes struct {
@@ -541,6 +590,86 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// PcDeviceIntegrity: Contains the device attestation information.
+type PcDeviceIntegrity struct {
+ // DeviceRecognitionVerdict: Details about the integrity of the device the app
+ // is running on.
+ //
+ // Possible values:
+ // "DEVICE_RECOGNITION_VERDICT_UNSPECIFIED" - Unspecified device integrity.
+ // "MEETS_PC_INTEGRITY" - App is running on Windows Device with Google
+ // Desktop Services.
+ DeviceRecognitionVerdict []string `json:"deviceRecognitionVerdict,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "DeviceRecognitionVerdict")
+ // to unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "DeviceRecognitionVerdict") to
+ // include in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s PcDeviceIntegrity) MarshalJSON() ([]byte, error) {
+ type NoMethod PcDeviceIntegrity
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// PcRequestDetails: Contains the integrity request information.
+type PcRequestDetails struct {
+ // RequestHash: Request hash that was provided in the request.
+ RequestHash string `json:"requestHash,omitempty"`
+ // RequestPackageName: Required. Application package name this attestation was
+ // requested for. Note: This field makes no guarantees or promises on the
+ // caller integrity.
+ RequestPackageName string `json:"requestPackageName,omitempty"`
+ // RequestTime: Required. Timestamp, of the integrity application request.
+ RequestTime string `json:"requestTime,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "RequestHash") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "RequestHash") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s PcRequestDetails) MarshalJSON() ([]byte, error) {
+ type NoMethod PcRequestDetails
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
+// PcTokenPayloadExternal: Contains PC device attestation details.
+type PcTokenPayloadExternal struct {
+ // DeviceIntegrity: Required. Details about the device integrity.
+ DeviceIntegrity *PcDeviceIntegrity `json:"deviceIntegrity,omitempty"`
+ // RequestDetails: Required. Details about the integrity request.
+ RequestDetails *PcRequestDetails `json:"requestDetails,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "DeviceIntegrity") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "DeviceIntegrity") to include in
+ // API requests with the JSON null value. By default, fields with empty values
+ // are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s PcTokenPayloadExternal) MarshalJSON() ([]byte, error) {
+ type NoMethod PcTokenPayloadExternal
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// RecentDeviceActivity: Recent device activity can help developers identify
// devices that have exhibited hyperactive attestation activity, which could be
// a sign of an attack or token farming.
@@ -972,3 +1101,109 @@
c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "playintegrity.decodeIntegrityToken", "response", internallog.HTTPResponse(res, b))
return ret, nil
}
+
+type V1DecodePcIntegrityTokenCall struct {
+ s *Service
+ packageName string
+ decodepcintegritytokenrequest *DecodePcIntegrityTokenRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// DecodePcIntegrityToken: Decodes the PC integrity token and returns the PC
+// token payload.
+//
+// - packageName: Package name of the app the attached integrity token belongs
+// to.
+func (r *V1Service) DecodePcIntegrityToken(packageName string, decodepcintegritytokenrequest *DecodePcIntegrityTokenRequest) *V1DecodePcIntegrityTokenCall {
+ c := &V1DecodePcIntegrityTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.packageName = packageName
+ c.decodepcintegritytokenrequest = decodepcintegritytokenrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
+// details.
+func (c *V1DecodePcIntegrityTokenCall) Fields(s ...googleapi.Field) *V1DecodePcIntegrityTokenCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method.
+func (c *V1DecodePcIntegrityTokenCall) Context(ctx context.Context) *V1DecodePcIntegrityTokenCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns a http.Header that can be modified by the caller to add
+// headers to the request.
+func (c *V1DecodePcIntegrityTokenCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *V1DecodePcIntegrityTokenCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
+ body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.decodepcintegritytokenrequest)
+ if err != nil {
+ return nil, err
+ }
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+packageName}:decodePcIntegrityToken")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("POST", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "packageName": c.packageName,
+ })
+ c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "playintegrity.decodePcIntegrityToken", "request", internallog.HTTPRequest(req, body.Bytes()))
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "playintegrity.decodePcIntegrityToken" call.
+// Any non-2xx status code is an error. Response headers are in either
+// *DecodePcIntegrityTokenResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *V1DecodePcIntegrityTokenCall) Do(opts ...googleapi.CallOption) (*DecodePcIntegrityTokenResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &DecodePcIntegrityTokenResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ b, err := gensupport.DecodeResponseBytes(target, res)
+ if err != nil {
+ return nil, err
+ }
+ c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "playintegrity.decodePcIntegrityToken", "response", internallog.HTTPResponse(res, b))
+ return ret, nil
+}
diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json
index a599d63..d5cb449 100644
--- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json
+++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json
@@ -542,7 +542,7 @@
}
}
},
- "revision": "20250508",
+ "revision": "20250511",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"AddTenantProjectRequest": {
@@ -642,7 +642,7 @@
"description": "Properties of the object.",
"type": "any"
},
- "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.",
+ "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `google/api/configaspects/proto`.",
"type": "object"
}
},
diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go
index 3d6c20b..63527c3 100644
--- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go
+++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go
@@ -308,7 +308,7 @@
// Kind: The type of this aspect configuration.
Kind string `json:"kind,omitempty"`
// Spec: Content of the configuration. The underlying schema should be defined
- // by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
+ // by Aspect owners as protobuf message under `google/api/configaspects/proto`.
Spec googleapi.RawMessage `json:"spec,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
// include in API requests. By default, fields with empty or default values are
diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json
index 7f94007..5af5fa4 100644
--- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json
+++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json
@@ -715,7 +715,7 @@
}
}
},
- "revision": "20250508",
+ "revision": "20250511",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"Api": {
@@ -785,7 +785,7 @@
"description": "Properties of the object.",
"type": "any"
},
- "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.",
+ "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `google/api/configaspects/proto`.",
"type": "object"
}
},
diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go
index d747d68..ecfa368 100644
--- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go
+++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go
@@ -290,7 +290,7 @@
// Kind: The type of this aspect configuration.
Kind string `json:"kind,omitempty"`
// Spec: Content of the configuration. The underlying schema should be defined
- // by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
+ // by Aspect owners as protobuf message under `google/api/configaspects/proto`.
Spec googleapi.RawMessage `json:"spec,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
// include in API requests. By default, fields with empty or default values are
diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json
index aa69153..14a7d72 100644
--- a/serviceusage/v1/serviceusage-api.json
+++ b/serviceusage/v1/serviceusage-api.json
@@ -426,7 +426,7 @@
}
}
},
- "revision": "20250313",
+ "revision": "20250511",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AddEnableRulesMetadata": {
@@ -634,7 +634,7 @@
"description": "Properties of the object.",
"type": "any"
},
- "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.",
+ "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `google/api/configaspects/proto`.",
"type": "object"
}
},
diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go
index 7830414..53a6f92 100644
--- a/serviceusage/v1/serviceusage-gen.go
+++ b/serviceusage/v1/serviceusage-gen.go
@@ -431,7 +431,7 @@
// Kind: The type of this aspect configuration.
Kind string `json:"kind,omitempty"`
// Spec: Content of the configuration. The underlying schema should be defined
- // by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
+ // by Aspect owners as protobuf message under `google/api/configaspects/proto`.
Spec googleapi.RawMessage `json:"spec,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
// include in API requests. By default, fields with empty or default values are
diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json
index aa24b13..7a3b6e0 100644
--- a/serviceusage/v1beta1/serviceusage-api.json
+++ b/serviceusage/v1beta1/serviceusage-api.json
@@ -964,7 +964,7 @@
}
}
},
- "revision": "20250417",
+ "revision": "20250511",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AddEnableRulesMetadata": {
@@ -1172,7 +1172,7 @@
"description": "Properties of the object.",
"type": "any"
},
- "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.",
+ "description": "Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `google/api/configaspects/proto`.",
"type": "object"
}
},
diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go
index 224b6e1..250c2b6 100644
--- a/serviceusage/v1beta1/serviceusage-gen.go
+++ b/serviceusage/v1beta1/serviceusage-gen.go
@@ -479,7 +479,7 @@
// Kind: The type of this aspect configuration.
Kind string `json:"kind,omitempty"`
// Spec: Content of the configuration. The underlying schema should be defined
- // by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
+ // by Aspect owners as protobuf message under `google/api/configaspects/proto`.
Spec googleapi.RawMessage `json:"spec,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
// include in API requests. By default, fields with empty or default values are
diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json
index fe67e29..b15b464 100644
--- a/sheets/v4/sheets-api.json
+++ b/sheets/v4/sheets-api.json
@@ -875,7 +875,7 @@
}
}
},
- "revision": "20250415",
+ "revision": "20250509",
"rootUrl": "https://sheets.googleapis.com/",
"schemas": {
"AddBandingRequest": {
@@ -1110,6 +1110,18 @@
},
"type": "object"
},
+ "AddTableResponse": {
+ "description": "The result of adding a table.",
+ "id": "AddTableResponse",
+ "properties": {
+ "table": {
+ "$ref": "Table",
+ "description": "Output only. The table that was added.",
+ "readOnly": true
+ }
+ },
+ "type": "object"
+ },
"AppendCellsRequest": {
"description": "Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.",
"id": "AppendCellsRequest",
@@ -6409,6 +6421,10 @@
"$ref": "AddSlicerResponse",
"description": "A reply from adding a slicer."
},
+ "addTable": {
+ "$ref": "AddTableResponse",
+ "description": "A reply from adding a table."
+ },
"cancelDataSourceRefresh": {
"$ref": "CancelDataSourceRefreshResponse",
"description": "A reply from cancelling data source object refreshes."
diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go
index bc917c5..9af24ab 100644
--- a/sheets/v4/sheets-gen.go
+++ b/sheets/v4/sheets-gen.go
@@ -702,6 +702,28 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// AddTableResponse: The result of adding a table.
+type AddTableResponse struct {
+ // Table: Output only. The table that was added.
+ Table *Table `json:"table,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "Table") to unconditionally
+ // include in API requests. By default, fields with empty or default values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "Table") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s AddTableResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod AddTableResponse
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// AppendCellsRequest: Adds new cells after the last row with data in a sheet,
// inserting new rows into the sheet if necessary.
type AppendCellsRequest struct {
@@ -7381,6 +7403,8 @@
AddSheet *AddSheetResponse `json:"addSheet,omitempty"`
// AddSlicer: A reply from adding a slicer.
AddSlicer *AddSlicerResponse `json:"addSlicer,omitempty"`
+ // AddTable: A reply from adding a table.
+ AddTable *AddTableResponse `json:"addTable,omitempty"`
// CancelDataSourceRefresh: A reply from cancelling data source object
// refreshes.
CancelDataSourceRefresh *CancelDataSourceRefreshResponse `json:"cancelDataSourceRefresh,omitempty"`
diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json
index 8b09cfc..ba34753 100644
--- a/storagetransfer/v1/storagetransfer-api.json
+++ b/storagetransfer/v1/storagetransfer-api.json
@@ -632,7 +632,7 @@
}
}
},
- "revision": "20250503",
+ "revision": "20250510",
"rootUrl": "https://storagetransfer.googleapis.com/",
"schemas": {
"AgentPool": {
@@ -764,6 +764,10 @@
"description": "Optional. The Resource name of a secret in Secret Manager. The Azure SAS token must be stored in Secret Manager in JSON format: { \"sas_token\" : \"SAS_TOKEN\" } GoogleServiceAccount must be granted `roles/secretmanager.secretAccessor` for the resource. See [Configure access to a source: Microsoft Azure Blob Storage] (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager) for more information. If `credentials_secret` is specified, do not specify azure_credentials. Format: `projects/{project_number}/secrets/{secret_name}`",
"type": "string"
},
+ "federatedIdentityConfig": {
+ "$ref": "FederatedIdentityConfig",
+ "description": "Optional. Federated identity config of a user registered Azure application. If `federated_identity_config` is specified, do not specify azure_credentials or credentials_secret."
+ },
"path": {
"description": "Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.",
"type": "string"
@@ -932,6 +936,21 @@
},
"type": "object"
},
+ "FederatedIdentityConfig": {
+ "description": "Identities of a user registered Azure application that enables identity federation to trust tokens issued by the user's Google service account. For more information about Azure application and identity federation, see [Register an application with the Microsoft identity platform] (https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) Azure RBAC roles then need be assigned to the Azure application to authorize access to the user's Azure data source. For more information about Azure RBAC roles for blobs, see [Manage Access Rights with RBAC] (https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory#manage-access-rights-with-rbac)",
+ "id": "FederatedIdentityConfig",
+ "properties": {
+ "clientId": {
+ "description": "Required. Client (application) ID of the application with federated credentials.",
+ "type": "string"
+ },
+ "tenantId": {
+ "description": "Required. Tenant (directory) ID of the application with federated credentials.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"GcsData": {
"description": "In a GcsData resource, an object's name is the Cloud Storage object's name and its \"last modification time\" refers to the object's `updated` property of Cloud Storage objects, which changes when the content or the metadata of the object is updated.",
"id": "GcsData",
diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go
index 714d022..75be54f 100644
--- a/storagetransfer/v1/storagetransfer-gen.go
+++ b/storagetransfer/v1/storagetransfer-gen.go
@@ -401,6 +401,10 @@
// for more information. If `credentials_secret` is specified, do not specify
// azure_credentials. Format: `projects/{project_number}/secrets/{secret_name}`
CredentialsSecret string `json:"credentialsSecret,omitempty"`
+ // FederatedIdentityConfig: Optional. Federated identity config of a user
+ // registered Azure application. If `federated_identity_config` is specified,
+ // do not specify azure_credentials or credentials_secret.
+ FederatedIdentityConfig *FederatedIdentityConfig `json:"federatedIdentityConfig,omitempty"`
// Path: Root path to transfer objects. Must be an empty string or full path
// name that ends with a '/'. This field is treated as an object prefix. As
// such, it should generally not begin with a '/'.
@@ -695,6 +699,41 @@
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
+// FederatedIdentityConfig: Identities of a user registered Azure application
+// that enables identity federation to trust tokens issued by the user's Google
+// service account. For more information about Azure application and identity
+// federation, see [Register an application with the Microsoft identity
+// platform]
+// (https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)
+// Azure RBAC roles then need be assigned to the Azure application to authorize
+// access to the user's Azure data source. For more information about Azure
+// RBAC roles for blobs, see [Manage Access Rights with RBAC]
+// (https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory#manage-access-rights-with-rbac)
+type FederatedIdentityConfig struct {
+ // ClientId: Required. Client (application) ID of the application with
+ // federated credentials.
+ ClientId string `json:"clientId,omitempty"`
+ // TenantId: Required. Tenant (directory) ID of the application with federated
+ // credentials.
+ TenantId string `json:"tenantId,omitempty"`
+ // ForceSendFields is a list of field names (e.g. "ClientId") to
+ // unconditionally include in API requests. By default, fields with empty or
+ // default values are omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
+ // details.
+ ForceSendFields []string `json:"-"`
+ // NullFields is a list of field names (e.g. "ClientId") to include in API
+ // requests with the JSON null value. By default, fields with empty values are
+ // omitted from API requests. See
+ // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
+ NullFields []string `json:"-"`
+}
+
+func (s FederatedIdentityConfig) MarshalJSON() ([]byte, error) {
+ type NoMethod FederatedIdentityConfig
+ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
+}
+
// GcsData: In a GcsData resource, an object's name is the Cloud Storage
// object's name and its "last modification time" refers to the object's
// `updated` property of Cloud Storage objects, which changes when the content