diff --git a/adsense/v2/adsense-api.json b/adsense/v2/adsense-api.json index fe7bdafb80c..1f36b477449 100644 --- a/adsense/v2/adsense-api.json +++ b/adsense/v2/adsense-api.json @@ -323,7 +323,7 @@ "adunits": { "methods": { "create": { - "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits", "httpMethod": "POST", "id": "adsense.accounts.adclients.adunits.create", @@ -1008,7 +1008,7 @@ "type": "integer" }, "filters": { - "description": "Filters to be run on the report.", + "description": "A list of [filters](/adsense/management/reporting/filtering) to apply to the report. All provided filters must match in order for the data to be included in the report.", "location": "query", "repeated": true, "type": "string" @@ -1318,7 +1318,7 @@ "type": "integer" }, "filters": { - "description": "Filters to be run on the report.", + "description": "A list of [filters](/adsense/management/reporting/filtering) to apply to the report. All provided filters must match in order for the data to be included in the report.", "location": "query", "repeated": true, "type": "string" @@ -1824,7 +1824,7 @@ } } }, - "revision": "20220927", + "revision": "20221025", "rootUrl": "https://adsense.googleapis.com/", "schemas": { "Account": { diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index a0b0aefa94a..38d3508db9c 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -2827,9 +2827,9 @@ type AccountsAdclientsAdunitsCreateCall struct { // (https://developers.google.com/adsense/platforms/) product. Note that // ad units can only be created for ad clients with an "AFC" product // code. For more info see the AdClient resource -// (https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients). -// For now, this method can only be used to create `DISPLAY` ad units. -// See: https://support.google.com/adsense/answer/9183566 +// (/adsense/management/reference/rest/v2/accounts.adclients). For now, +// this method can only be used to create `DISPLAY` ad units. See: +// https://support.google.com/adsense/answer/9183566 // // - parent: Ad client to create an ad unit under. Format: // accounts/{account}/adclients/{adclient}. @@ -2931,7 +2931,7 @@ func (c *AccountsAdclientsAdunitsCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", + // "description": "Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms](https://developers.google.com/adsense/platforms/) product. Note that ad units can only be created for ad clients with an \"AFC\" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566", // "flatPath": "v2/accounts/{accountsId}/adclients/{adclientsId}/adunits", // "httpMethod": "POST", // "id": "adsense.accounts.adclients.adunits.create", @@ -5740,7 +5740,9 @@ func (c *AccountsReportsGenerateCall) EndDateYear(endDateYear int64) *AccountsRe return c } -// Filters sets the optional parameter "filters": Filters to be run on +// Filters sets the optional parameter "filters": A list of filters +// (/adsense/management/reporting/filtering) to apply to the report. All +// provided filters must match in order for the data to be included in // the report. func (c *AccountsReportsGenerateCall) Filters(filters ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("filters", append([]string{}, filters...)) @@ -6218,7 +6220,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*ReportR // "type": "integer" // }, // "filters": { - // "description": "Filters to be run on the report.", + // "description": "A list of [filters](/adsense/management/reporting/filtering) to apply to the report. All provided filters must match in order for the data to be included in the report.", // "location": "query", // "repeated": true, // "type": "string" @@ -6634,7 +6636,9 @@ func (c *AccountsReportsGenerateCsvCall) EndDateYear(endDateYear int64) *Account return c } -// Filters sets the optional parameter "filters": Filters to be run on +// Filters sets the optional parameter "filters": A list of filters +// (/adsense/management/reporting/filtering) to apply to the report. All +// provided filters must match in order for the data to be included in // the report. func (c *AccountsReportsGenerateCsvCall) Filters(filters ...string) *AccountsReportsGenerateCsvCall { c.urlParams_.SetMulti("filters", append([]string{}, filters...)) @@ -7112,7 +7116,7 @@ func (c *AccountsReportsGenerateCsvCall) Do(opts ...googleapi.CallOption) (*Http // "type": "integer" // }, // "filters": { - // "description": "Filters to be run on the report.", + // "description": "A list of [filters](/adsense/management/reporting/filtering) to apply to the report. All provided filters must match in order for the data to be included in the report.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index d295e2eb830..5500733ec23 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -2956,7 +2956,7 @@ } } }, - "revision": "20221013", + "revision": "20221025", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5708,7 +5708,8 @@ "SEARCH_ADS_360_LINK", "DATA_STREAM", "ATTRIBUTION_SETTINGS", - "EXPANDED_DATA_SET" + "EXPANDED_DATA_SET", + "CHANNEL_GROUPING" ], "enumDescriptions": [ "Resource type unknown or not specified.", @@ -5727,7 +5728,8 @@ "SearchAds360Link resource", "DataStream resource", "AttributionSettings resource", - "ExpandedDataSet resource" + "ExpandedDataSet resource", + "ChannelGrouping resource" ], "type": "string" }, diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 57a215f6d99..e51825f33fb 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -5034,6 +5034,7 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "DATA_STREAM" - DataStream resource // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource + // "CHANNEL_GROUPING" - ChannelGrouping resource ResourceType []string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 4103081ba3d..2ccdbf06ec0 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://androidpublisher.googleapis.com/", "batchPath": "batch", "canonicalName": "Android Publisher", - "description": "Lets Android application developers access their Google Play accounts.", + "description": "Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to \"insert\" an Edit, make changes as necessary, and then \"commit\" it. ", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/android-publisher", "icons": { @@ -3920,7 +3920,7 @@ } } }, - "revision": "20221024", + "revision": "20221025", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { diff --git a/api-list.json b/api-list.json index a83a43e534d..3a4b6339ca6 100644 --- a/api-list.json +++ b/api-list.json @@ -367,7 +367,7 @@ "name": "androidpublisher", "version": "v3", "title": "Google Play Android Developer API", - "description": "Lets Android application developers access their Google Play accounts.", + "description": "Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to \"insert\" an Edit, make changes as necessary, and then \"commit\" it.", "discoveryRestUrl": "https://androidpublisher.googleapis.com/$discovery/rest?version=v3", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index fa9384cfacd..b751de7125a 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -1457,7 +1457,7 @@ } } }, - "revision": "20221003", + "revision": "20221022", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -2365,6 +2365,11 @@ "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. If set, the repository satisfies physical zone separation.", + "readOnly": true, + "type": "boolean" + }, "sizeBytes": { "description": "Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.", "format": "int64", diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 1fe53bd82ae..6af75c9bfa6 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -1950,6 +1950,10 @@ type Repository struct { // "projects/p1/locations/us-central1/repositories/repo1". Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. If set, the repository satisfies physical + // zone separation. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // SizeBytes: Output only. The size, in bytes, of all artifact storage // in this repository. Repositories that are generally available or in // public preview use this to calculate storage costs. diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index 0220d712e29..0a5a186fd69 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -929,7 +929,7 @@ } } }, - "revision": "20220829", + "revision": "20221022", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { @@ -1322,6 +1322,11 @@ "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. If set, the repository satisfies physical zone separation.", + "readOnly": true, + "type": "boolean" + }, "sizeBytes": { "description": "Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.", "format": "int64", diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index f6bb3e47c8d..db945f97e5d 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -994,6 +994,10 @@ type Repository struct { // "projects/p1/locations/us-central1/repositories/repo1". Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. If set, the repository satisfies physical + // zone separation. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // SizeBytes: Output only. The size, in bytes, of all artifact storage // in this repository. Repositories that are generally available or in // public preview use this to calculate storage costs. diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index 66a1671dd03..e8bd6e61889 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -1135,7 +1135,7 @@ } } }, - "revision": "20221003", + "revision": "20221022", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1780,6 +1780,11 @@ "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", "type": "string" }, + "satisfiesPzs": { + "description": "Output only. If set, the repository satisfies physical zone separation.", + "readOnly": true, + "type": "boolean" + }, "sizeBytes": { "description": "Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.", "format": "int64", diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index 0a022242a4c..fde9d6855b4 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1436,6 +1436,10 @@ type Repository struct { // "projects/p1/locations/us-central1/repositories/repo1". Name string `json:"name,omitempty"` + // SatisfiesPzs: Output only. If set, the repository satisfies physical + // zone separation. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // SizeBytes: Output only. The size, in bytes, of all artifact storage // in this repository. Repositories that are generally available or in // public preview use this to calculate storage costs. diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 158b705516b..925d4c90478 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -491,7 +491,7 @@ } } }, - "revision": "20221014", + "revision": "20221020", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -873,6 +873,11 @@ ], "type": "string" }, + "complianceStatus": { + "$ref": "GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus", + "description": "Output only. Count of active Violations in the Workload.", + "readOnly": true + }, "compliantButDisallowedServices": { "description": "Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.\"", "items": { @@ -968,6 +973,23 @@ }, "type": "object" }, + "GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus": { + "description": "Represents the Compliance Status of this workload", + "id": "GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus", + "properties": { + "acknowledgedViolationCount": { + "description": "Count of active Violations which are acknowledged in the Workload.", + "format": "int32", + "type": "integer" + }, + "activeViolationCount": { + "description": "Count of active Violations which haven't been acknowledged.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings": { "description": "Settings specific to the Key Management Service. This message is deprecated. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.", "id": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 474f9d875e3..354de674211 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -724,6 +724,10 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners ComplianceRegime string `json:"complianceRegime,omitempty"` + // ComplianceStatus: Output only. Count of active Violations in the + // Workload. + ComplianceStatus *GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus `json:"complianceStatus,omitempty"` + // CompliantButDisallowedServices: Output only. Urls for services which // are compliant for this Assured Workload, but which are currently // disallowed by the ResourceUsageRestriction org policy. Invoke @@ -836,6 +840,42 @@ func (s *GoogleCloudAssuredworkloadsV1Workload) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus: Represents the +// Compliance Status of this workload +type GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus struct { + // AcknowledgedViolationCount: Count of active Violations which are + // acknowledged in the Workload. + AcknowledgedViolationCount int64 `json:"acknowledgedViolationCount,omitempty"` + + // ActiveViolationCount: Count of active Violations which haven't been + // acknowledged. + ActiveViolationCount int64 `json:"activeViolationCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AcknowledgedViolationCount") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AcknowledgedViolationCount") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAssuredworkloadsV1WorkloadKMSSettings: Settings specific // to the Key Management Service. This message is deprecated. In order // to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT diff --git a/baremetalsolution/v2/baremetalsolution-api.json b/baremetalsolution/v2/baremetalsolution-api.json index c97f9befd45..d6ec1595c16 100644 --- a/baremetalsolution/v2/baremetalsolution-api.json +++ b/baremetalsolution/v2/baremetalsolution-api.json @@ -1283,6 +1283,152 @@ ] } } + }, + "snapshots": { + "methods": { + "create": { + "description": "Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots", + "httpMethod": "POST", + "id": "baremetalsolution.projects.locations.volumes.snapshots.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The volume to snapshot.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/snapshots", + "request": { + "$ref": "VolumeSnapshot" + }, + "response": { + "$ref": "VolumeSnapshot" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}", + "httpMethod": "DELETE", + "id": "baremetalsolution.projects.locations.volumes.snapshots.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the snapshot to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}", + "httpMethod": "GET", + "id": "baremetalsolution.projects.locations.volumes.snapshots.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the snapshot.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "VolumeSnapshot" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots", + "httpMethod": "GET", + "id": "baremetalsolution.projects.locations.volumes.snapshots.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results from the server.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListVolumesRequest.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/snapshots", + "response": { + "$ref": "ListVolumeSnapshotsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restoreVolumeSnapshot": { + "description": "Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}:restoreVolumeSnapshot", + "httpMethod": "POST", + "id": "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot", + "parameterOrder": [ + "volumeSnapshot" + ], + "parameters": { + "volumeSnapshot": { + "description": "Required. Name of the snapshot which will be used to restore its parent volume.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+volumeSnapshot}:restoreVolumeSnapshot", + "request": { + "$ref": "RestoreVolumeSnapshotRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -1291,7 +1437,7 @@ } } }, - "revision": "20220921", + "revision": "20221017", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { "AllowedClient": { @@ -1844,6 +1990,31 @@ }, "type": "object" }, + "ListVolumeSnapshotsResponse": { + "description": "Response message containing the list of volume snapshots.", + "id": "ListVolumeSnapshotsResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results from the server.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "volumeSnapshots": { + "description": "The list of snapshots.", + "items": { + "$ref": "VolumeSnapshot" + }, + "type": "array" + } + }, + "type": "object" + }, "ListVolumesResponse": { "description": "Response message containing the list of storage volumes.", "id": "ListVolumesResponse", @@ -2743,6 +2914,12 @@ }, "type": "object" }, + "RestoreVolumeSnapshotRequest": { + "description": "Message for restoring a volume snapshot.", + "id": "RestoreVolumeSnapshotRequest", + "properties": {}, + "type": "object" + }, "SSHKey": { "description": "An SSH key, used for authorizing with the interactive serial console feature.", "id": "SSHKey", @@ -3204,6 +3381,52 @@ } }, "type": "object" + }, + "VolumeSnapshot": { + "description": "A snapshot of a volume. Only boot volumes can have snapshots.", + "id": "VolumeSnapshot", + "properties": { + "createTime": { + "description": "Output only. The creation time of the snapshot.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "The description of the snapshot.", + "type": "string" + }, + "id": { + "description": "Output only. An identifier for the snapshot, generated by the backend.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the snapshot.", + "type": "string" + }, + "storageVolume": { + "description": "Output only. The name of the volume which this snapshot belongs to.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.", + "enum": [ + "SNAPSHOT_TYPE_UNSPECIFIED", + "AD_HOC", + "SCHEDULED" + ], + "enumDescriptions": [ + "Type is not specified.", + "Snapshot was taken manually by user.", + "Snapshot was taken automatically as a part of a snapshot schedule." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index 4c98d5e4bf7..10136efc39e 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -260,6 +260,7 @@ type ProjectsLocationsSshKeysService struct { func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService { rs := &ProjectsLocationsVolumesService{s: s} rs.Luns = NewProjectsLocationsVolumesLunsService(s) + rs.Snapshots = NewProjectsLocationsVolumesSnapshotsService(s) return rs } @@ -267,6 +268,8 @@ type ProjectsLocationsVolumesService struct { s *Service Luns *ProjectsLocationsVolumesLunsService + + Snapshots *ProjectsLocationsVolumesSnapshotsService } func NewProjectsLocationsVolumesLunsService(s *Service) *ProjectsLocationsVolumesLunsService { @@ -278,6 +281,15 @@ type ProjectsLocationsVolumesLunsService struct { s *Service } +func NewProjectsLocationsVolumesSnapshotsService(s *Service) *ProjectsLocationsVolumesSnapshotsService { + rs := &ProjectsLocationsVolumesSnapshotsService{s: s} + return rs +} + +type ProjectsLocationsVolumesSnapshotsService struct { + s *Service +} + // AllowedClient: Represents an 'access point' for the share. type AllowedClient struct { // AllowDev: Allow dev flag. Which controls whether to allow creation of @@ -1075,6 +1087,45 @@ func (s *ListSSHKeysResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListVolumeSnapshotsResponse: Response message containing the list of +// volume snapshots. +type ListVolumeSnapshotsResponse struct { + // NextPageToken: A token identifying a page of results from the server. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // VolumeSnapshots: The list of snapshots. + VolumeSnapshots []*VolumeSnapshot `json:"volumeSnapshots,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListVolumeSnapshotsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListVolumeSnapshotsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListVolumesResponse: Response message containing the list of storage // volumes. type ListVolumesResponse struct { @@ -2165,6 +2216,11 @@ func (s *ResizeVolumeRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RestoreVolumeSnapshotRequest: Message for restoring a volume +// snapshot. +type RestoreVolumeSnapshotRequest struct { +} + // SSHKey: An SSH key, used for authorizing with the interactive serial // console feature. type SSHKey struct { @@ -2728,6 +2784,63 @@ func (s *VolumeConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// VolumeSnapshot: A snapshot of a volume. Only boot volumes can have +// snapshots. +type VolumeSnapshot struct { + // CreateTime: Output only. The creation time of the snapshot. + CreateTime string `json:"createTime,omitempty"` + + // Description: The description of the snapshot. + Description string `json:"description,omitempty"` + + // Id: Output only. An identifier for the snapshot, generated by the + // backend. + Id string `json:"id,omitempty"` + + // Name: The name of the snapshot. + Name string `json:"name,omitempty"` + + // StorageVolume: Output only. The name of the volume which this + // snapshot belongs to. + StorageVolume string `json:"storageVolume,omitempty"` + + // Type: Output only. The type of the snapshot which indicates whether + // it was scheduled or manual/ad-hoc. + // + // Possible values: + // "SNAPSHOT_TYPE_UNSPECIFIED" - Type is not specified. + // "AD_HOC" - Snapshot was taken manually by user. + // "SCHEDULED" - Snapshot was taken automatically as a part of a + // snapshot schedule. + Type string `json:"type,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VolumeSnapshot) MarshalJSON() ([]byte, error) { + type NoMethod VolumeSnapshot + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "baremetalsolution.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -8604,3 +8717,766 @@ func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctx context.Context, f func c.PageToken(x.NextPageToken) } } + +// method id "baremetalsolution.projects.locations.volumes.snapshots.create": + +type ProjectsLocationsVolumesSnapshotsCreateCall struct { + s *Service + parent string + volumesnapshot *VolumeSnapshot + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT +// if called for a non-boot volume. +// +// - parent: The volume to snapshot. +func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall { + c := &ProjectsLocationsVolumesSnapshotsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.volumesnapshot = volumesnapshot + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVolumesSnapshotsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.volumesnapshot) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/snapshots") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "baremetalsolution.projects.locations.volumes.snapshots.create" call. +// Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *VolumeSnapshot.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 *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, 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, &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, err + } + ret := &VolumeSnapshot{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots", + // "httpMethod": "POST", + // "id": "baremetalsolution.projects.locations.volumes.snapshots.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The volume to snapshot.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/snapshots", + // "request": { + // "$ref": "VolumeSnapshot" + // }, + // "response": { + // "$ref": "VolumeSnapshot" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "baremetalsolution.projects.locations.volumes.snapshots.delete": + +type ProjectsLocationsVolumesSnapshotsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a volume snapshot. Returns INVALID_ARGUMENT if called +// for a non-boot volume. +// +// - name: The name of the snapshot to delete. +func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall { + c := &ProjectsLocationsVolumesSnapshotsDeleteCall{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 information. +func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "baremetalsolution.projects.locations.volumes.snapshots.delete" call. +// Exactly one of *Empty or error will be non-nil. 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 *ProjectsLocationsVolumesSnapshotsDeleteCall) 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, &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, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}", + // "httpMethod": "DELETE", + // "id": "baremetalsolution.projects.locations.volumes.snapshots.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the snapshot to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "baremetalsolution.projects.locations.volumes.snapshots.get": + +type ProjectsLocationsVolumesSnapshotsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the specified snapshot resource. Returns +// INVALID_ARGUMENT if called for a non-boot volume. +// +// - name: The name of the snapshot. +func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall { + c := &ProjectsLocationsVolumesSnapshotsGetCall{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 information. +func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVolumesSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "baremetalsolution.projects.locations.volumes.snapshots.get" call. +// Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *VolumeSnapshot.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 *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, 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, &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, err + } + ret := &VolumeSnapshot{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}", + // "httpMethod": "GET", + // "id": "baremetalsolution.projects.locations.volumes.snapshots.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the snapshot.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "VolumeSnapshot" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "baremetalsolution.projects.locations.volumes.snapshots.list": + +type ProjectsLocationsVolumesSnapshotsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves the list of snapshots for the specified volume. +// Returns a response with an empty list of snapshots if called for a +// non-boot volume. +// +// - parent: Parent value for ListVolumesRequest. +func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall { + c := &ProjectsLocationsVolumesSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// The server might return fewer items than requested. If unspecified, +// server will pick an appropriate default. +func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results from the server. +func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVolumesSnapshotsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/snapshots") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "baremetalsolution.projects.locations.volumes.snapshots.list" call. +// Exactly one of *ListVolumeSnapshotsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListVolumeSnapshotsResponse.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 *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, 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, &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, err + } + ret := &ListVolumeSnapshotsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots", + // "httpMethod": "GET", + // "id": "baremetalsolution.projects.locations.volumes.snapshots.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results from the server.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent value for ListVolumesRequest.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/snapshots", + // "response": { + // "$ref": "ListVolumeSnapshotsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot": + +type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall struct { + s *Service + volumeSnapshot string + restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RestoreVolumeSnapshot: Uses the specified snapshot to restore its +// parent volume. Returns INVALID_ARGUMENT if called for a non-boot +// volume. +// +// - volumeSnapshot: Name of the snapshot which will be used to restore +// its parent volume. +func (r *ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot(volumeSnapshot string, restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall { + c := &ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.volumeSnapshot = volumeSnapshot + c.restorevolumesnapshotrequest = restorevolumesnapshotrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restorevolumesnapshotrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+volumeSnapshot}:restoreVolumeSnapshot") + 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{ + "volumeSnapshot": c.volumeSnapshot, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) 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, &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, err + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}:restoreVolumeSnapshot", + // "httpMethod": "POST", + // "id": "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot", + // "parameterOrder": [ + // "volumeSnapshot" + // ], + // "parameters": { + // "volumeSnapshot": { + // "description": "Required. Name of the snapshot which will be used to restore its parent volume.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+volumeSnapshot}:restoreVolumeSnapshot", + // "request": { + // "$ref": "RestoreVolumeSnapshotRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 831357c48c8..afb166a9b34 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -35512,7 +35512,7 @@ } } }, - "revision": "20221011", + "revision": "20221018", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -40102,7 +40102,7 @@ "type": "array" }, "allowOriginRegexes": { - "description": "Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.", + "description": "Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.", "items": { "type": "string" }, @@ -44569,7 +44569,7 @@ "description": "The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL." }, "regexMatch": { - "description": "The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. regexMatch only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED.", + "description": "The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.", "type": "string" }, "suffixMatch": { @@ -44802,7 +44802,7 @@ "type": "boolean" }, "regexMatch": { - "description": "The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. ", + "description": "The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. ", "type": "string" } }, @@ -45008,7 +45008,7 @@ "type": "array" }, "regexMatch": { - "description": "For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. regexMatch only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED.", + "description": "For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.", "type": "string" } }, @@ -71086,7 +71086,7 @@ "type": "string" }, "stackType": { - "description": "The stack type for this VPN gateway to identify the IP protocols that are enabled. If not specified, IPV4_ONLY will be used.", + "description": "The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.", "enum": [ "IPV4_IPV6", "IPV4_ONLY" @@ -71639,7 +71639,7 @@ "type": "string" }, "peerExternalGatewayInterface": { - "description": "The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created.", + "description": "The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.", "format": "int32", "type": "integer" }, @@ -71721,7 +71721,7 @@ "type": "string" }, "vpnGatewayInterface": { - "description": "The interface ID of the VPN gateway with which this VPN tunnel is associated.", + "description": "The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.", "format": "int32", "type": "integer" } diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 9f640d9280f..0b8ee8da282 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -8566,7 +8566,9 @@ type CorsPolicy struct { // AllowOriginRegexes: Specifies a regular expression that matches // allowed origins. For more information about the regular expression // syntax, see Syntax. An origin is allowed if it matches either an item - // in allowOrigins or an item in allowOriginRegexes. + // in allowOrigins or an item in allowOriginRegexes. Regular expressions + // can only be used when the loadBalancingScheme is set to + // INTERNAL_SELF_MANAGED. AllowOriginRegexes []string `json:"allowOriginRegexes,omitempty"` // AllowOrigins: Specifies the list of origins that is allowed to do @@ -15830,8 +15832,8 @@ type HttpHeaderMatch struct { // in the HTTP request, use a headerMatch with headerName set to PORT // and a regular expression that satisfies the RFC2616 Host header's // port specifier. Only one of exactMatch, prefixMatch, suffixMatch, - // regexMatch, presentMatch or rangeMatch must be set. regexMatch only - // applies to load balancers that have loadBalancingScheme set to + // regexMatch, presentMatch or rangeMatch must be set. Regular + // expressions can only be used when the loadBalancingScheme is set to // INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` @@ -16206,8 +16208,8 @@ type HttpQueryParameterMatch struct { // RegexMatch: The queryParameterMatch matches if the value of the // parameter matches the regular expression specified by regexMatch. For // more information about regular expression syntax, see Syntax. Only - // one of presentMatch, exactMatch, or regexMatch must be set. - // regexMatch only applies when the loadBalancingScheme is set to + // one of presentMatch, exactMatch, or regexMatch must be set. Regular + // expressions can only be used when the loadBalancingScheme is set to // INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` @@ -16643,8 +16645,8 @@ type HttpRouteRuleMatch struct { // after removing any query parameters and anchor supplied with the // original URL. For more information about regular expression syntax, // see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must - // be specified. regexMatch only applies to load balancers that have - // loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // be specified. Regular expressions can only be used when the + // loadBalancingScheme is set to INTERNAL_SELF_MANAGED. RegexMatch string `json:"regexMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "FullPathMatch") to @@ -57397,7 +57399,8 @@ type VpnGateway struct { SelfLink string `json:"selfLink,omitempty"` // StackType: The stack type for this VPN gateway to identify the IP - // protocols that are enabled. If not specified, IPV4_ONLY will be used. + // protocols that are enabled. Possible values are: IPV4_ONLY, + // IPV4_IPV6. If not specified, IPV4_ONLY will be used. // // Possible values: // "IPV4_IPV6" - Enable VPN gateway with both IPv4 and IPv6 protocols. @@ -58294,7 +58297,9 @@ type VpnTunnel struct { // PeerExternalGatewayInterface: The interface ID of the external VPN // gateway to which this VPN tunnel is connected. Provided by the client - // when the VPN tunnel is created. + // when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, + // `3`. The number of IDs in use depends on the external VPN gateway + // redundancy type. PeerExternalGatewayInterface int64 `json:"peerExternalGatewayInterface,omitempty"` // PeerGcpGateway: URL of the peer side HA GCP VPN gateway to which this @@ -58391,7 +58396,7 @@ type VpnTunnel struct { VpnGateway string `json:"vpnGateway,omitempty"` // VpnGatewayInterface: The interface ID of the VPN gateway with which - // this VPN tunnel is associated. + // this VPN tunnel is associated. Possible values are: `0`, `1`. VpnGatewayInterface int64 `json:"vpnGatewayInterface,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 3fee3e0924b..3e5a0382d1e 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20221017", + "revision": "20221023", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -3339,15 +3339,19 @@ "properties": { "humanReviewLabelingMetadata": { "$ref": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata", - "description": "Human review labeling config on the property." + "description": "Human review labeling config on the entity." }, "humanReviewMetadata": { "$ref": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata", - "description": "Human review config on the entity type." + "description": "Human review config on the entity." }, "inactive": { "description": "Whether the entity type should be considered as \"inactive\".", "type": "boolean" + }, + "schemaMutabilityMetadata": { + "$ref": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", + "description": "Schema mutability metadata on the entity." } }, "type": "object" @@ -3795,6 +3799,10 @@ "inactive": { "description": "Whether the property should be considered as \"inactive\".", "type": "boolean" + }, + "schemaMutabilityMetadata": { + "$ref": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", + "description": "Schema mutability metadata on the property." } }, "type": "object" @@ -3890,6 +3898,24 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1SchemaMutabilityMetadata": { + "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", + "id": "GoogleCloudDocumentaiV1SchemaMutabilityMetadata", + "properties": { + "editable": { + "description": "Explicit flag that controls whether the label is editable.", + "type": "boolean" + }, + "processorVersions": { + "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata", diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 0f03b647413..a7016f83b6c 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -4112,15 +4112,18 @@ type GoogleCloudDocumentaiV1EnableProcessorResponse struct { // type. type GoogleCloudDocumentaiV1EntityTypeMetadata struct { // HumanReviewLabelingMetadata: Human review labeling config on the - // property. + // entity. HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - // HumanReviewMetadata: Human review config on the entity type. + // HumanReviewMetadata: Human review config on the entity. HumanReviewMetadata *GoogleCloudDocumentaiV1HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` // Inactive: Whether the entity type should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` + // SchemaMutabilityMetadata: Schema mutability metadata on the entity. + SchemaMutabilityMetadata *GoogleCloudDocumentaiV1SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. // "HumanReviewLabelingMetadata") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -4959,6 +4962,9 @@ type GoogleCloudDocumentaiV1PropertyMetadata struct { // Inactive: Whether the property should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` + // SchemaMutabilityMetadata: Schema mutability metadata on the property. + SchemaMutabilityMetadata *GoogleCloudDocumentaiV1SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. // "HumanReviewLabelingMetadata") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -5139,6 +5145,42 @@ func (s *GoogleCloudDocumentaiV1ReviewDocumentResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1SchemaMutabilityMetadata: Metadata that +// specifies whether a label is editable and reasons why. These fields +// are read-only. Changing these fields has no impact on the backend. +type GoogleCloudDocumentaiV1SchemaMutabilityMetadata struct { + // Editable: Explicit flag that controls whether the label is editable. + Editable bool `json:"editable,omitempty"` + + // ProcessorVersions: Full resource name of processor versions that + // contain this label. e.g. + // `projects/{project}/locations/{location}/processors/{processor}/proces + // sorVersions/{processorVersion}` + ProcessorVersions []string `json:"processorVersions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Editable") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Editable") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1SchemaMutabilityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1SchemaMutabilityMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata: The long // running operation metadata for set default processor version method. type GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata struct { diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 05a2be98c36..d920c37ee2a 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -836,7 +836,7 @@ } } }, - "revision": "20221017", + "revision": "20221023", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -6091,15 +6091,19 @@ "properties": { "humanReviewLabelingMetadata": { "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata", - "description": "Human review labeling config on the property." + "description": "Human review labeling config on the entity." }, "humanReviewMetadata": { "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata", - "description": "Human review config on the entity type." + "description": "Human review config on the entity." }, "inactive": { "description": "Whether the entity type should be considered as \"inactive\".", "type": "boolean" + }, + "schemaMutabilityMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", + "description": "Schema mutability metadata on the entity." } }, "type": "object" @@ -6555,6 +6559,10 @@ "inactive": { "description": "Whether the property should be considered as \"inactive\".", "type": "boolean" + }, + "schemaMutabilityMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", + "description": "Schema mutability metadata on the property." } }, "type": "object" @@ -6688,6 +6696,24 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata": { + "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", + "id": "GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata", + "properties": { + "editable": { + "description": "Explicit flag that controls whether the label is editable.", + "type": "boolean" + }, + "processorVersions": { + "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata": { "description": "The long running operation metadata for set default processor version method.", "id": "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata", diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index eabc44c053a..7c61493aa6a 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8997,15 +8997,18 @@ type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct { // entity type. type GoogleCloudDocumentaiV1beta3EntityTypeMetadata struct { // HumanReviewLabelingMetadata: Human review labeling config on the - // property. + // entity. HumanReviewLabelingMetadata *GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata `json:"humanReviewLabelingMetadata,omitempty"` - // HumanReviewMetadata: Human review config on the entity type. + // HumanReviewMetadata: Human review config on the entity. HumanReviewMetadata *GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata `json:"humanReviewMetadata,omitempty"` // Inactive: Whether the entity type should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` + // SchemaMutabilityMetadata: Schema mutability metadata on the entity. + SchemaMutabilityMetadata *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. // "HumanReviewLabelingMetadata") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -9855,6 +9858,9 @@ type GoogleCloudDocumentaiV1beta3PropertyMetadata struct { // Inactive: Whether the property should be considered as "inactive". Inactive bool `json:"inactive,omitempty"` + // SchemaMutabilityMetadata: Schema mutability metadata on the property. + SchemaMutabilityMetadata *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata `json:"schemaMutabilityMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. // "HumanReviewLabelingMetadata") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -10059,6 +10065,42 @@ func (s *GoogleCloudDocumentaiV1beta3ReviewDocumentResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata: Metadata that +// specifies whether a label is editable and reasons why. These fields +// are read-only. Changing these fields has no impact on the backend. +type GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata struct { + // Editable: Explicit flag that controls whether the label is editable. + Editable bool `json:"editable,omitempty"` + + // ProcessorVersions: Full resource name of processor versions that + // contain this label. e.g. + // `projects/{project}/locations/{location}/processors/{processor}/proces + // sorVersions/{processorVersion}` + ProcessorVersions []string `json:"processorVersions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Editable") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Editable") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3SchemaMutabilityMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata: The // long running operation metadata for set default processor version // method. diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 56e8d059ec4..009c3983695 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -14,7 +14,7 @@ "canonicalName": "Integrations", "description": "", "discoveryVersion": "v1", - "documentationLink": "http://www.google.com", + "documentationLink": "https://cloud.google.com/application-integration", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -870,11 +870,6 @@ "repeated": true, "type": "string" }, - "filterParams.triggerId": { - "description": "Trigger id.", - "location": "query", - "type": "string" - }, "filterParams.workflowName": { "description": "Workflow name.", "location": "query", @@ -1923,11 +1918,6 @@ "repeated": true, "type": "string" }, - "filterParams.triggerId": { - "description": "Trigger id.", - "location": "query", - "type": "string" - }, "filterParams.workflowName": { "description": "Workflow name.", "location": "query", @@ -3318,7 +3308,7 @@ } } }, - "revision": "20220913", + "revision": "20221019", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -3904,6 +3894,29 @@ }, "type": "object" }, + "EnterpriseCrmEventbusProtoCloudSchedulerConfig": { + "description": "Cloud Scheduler Trigger configuration", + "id": "EnterpriseCrmEventbusProtoCloudSchedulerConfig", + "properties": { + "cronTab": { + "description": "Required. The cron tab of cloud scheduler trigger.", + "type": "string" + }, + "errorMessage": { + "description": "Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations", + "type": "string" + }, + "location": { + "description": "Required. The location where associated cloud scheduler job will be created", + "type": "string" + }, + "serviceAccountEmail": { + "description": "Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time", + "type": "string" + } + }, + "type": "object" + }, "EnterpriseCrmEventbusProtoCombinedCondition": { "description": "This message recursively combines constituent conditions using logical AND.", "id": "EnterpriseCrmEventbusProtoCombinedCondition", @@ -7424,7 +7437,7 @@ "type": "object" }, "EnterpriseCrmFrontendsEventbusProtoTriggerConfig": { - "description": "Configuration detail of a trigger. Next available id: 16", + "description": "Configuration detail of a trigger. Next available id: 17", "id": "EnterpriseCrmFrontendsEventbusProtoTriggerConfig", "properties": { "alertConfig": { @@ -7434,6 +7447,9 @@ }, "type": "array" }, + "cloudSchedulerConfig": { + "$ref": "EnterpriseCrmEventbusProtoCloudSchedulerConfig" + }, "description": { "description": "User-provided description intended to give more business context about the task.", "type": "string" @@ -7510,7 +7526,8 @@ "SFDC_CHANNEL", "CLOUD_PUBSUB_EXTERNAL", "SFDC_CDC_CHANNEL", - "SFDC_PLATFORM_EVENTS_CHANNEL" + "SFDC_PLATFORM_EVENTS_CHANNEL", + "CLOUD_SCHEDULER" ], "enumDescriptions": [ "", @@ -7524,6 +7541,7 @@ "", "", "", + "", "" ], "type": "string" @@ -7902,10 +7920,6 @@ "description": "Format of SSH Client cert.", "type": "string" }, - "password": { - "$ref": "GoogleCloudConnectorsV1Secret", - "description": "This is an optional field used in case client has enabled multi-factor authentication" - }, "sshClientCert": { "$ref": "GoogleCloudConnectorsV1Secret", "description": "SSH Client Cert. It should contain both public and private key." @@ -8509,6 +8523,29 @@ }, "type": "object" }, + "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig": { + "description": "Cloud Scheduler Trigger configuration", + "id": "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig", + "properties": { + "cronTab": { + "description": "Required. The cron tab of cloud scheduler trigger.", + "type": "string" + }, + "errorMessage": { + "description": "Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations", + "type": "string" + }, + "location": { + "description": "Required. The location where associated cloud scheduler job will be created", + "type": "string" + }, + "serviceAccountEmail": { + "description": "Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata": { "description": "Metadata of runtime connection schema.", "id": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata", @@ -10969,6 +11006,10 @@ }, "type": "array" }, + "cloudSchedulerConfig": { + "$ref": "GoogleCloudIntegrationsV1alphaCloudSchedulerConfig", + "description": "Optional. Cloud Scheduler Trigger related metadata" + }, "description": { "description": "Optional. User-provided description intended to give additional business context about the task.", "type": "string" @@ -11021,7 +11062,8 @@ "API", "SFDC_CHANNEL", "CLOUD_PUBSUB_EXTERNAL", - "SFDC_CDC_CHANNEL" + "SFDC_CDC_CHANNEL", + "CLOUD_SCHEDULER" ], "enumDescriptions": [ "Unknown.", @@ -11029,7 +11071,8 @@ "Trigger by API call.", "Trigger by Salesforce Channel.", "Trigger by Pub/Sub external.", - "SFDC Channel Trigger for CDC." + "SFDC Channel Trigger for CDC.", + "Trigger by Cloud Scheduler job." ], "type": "string" } diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index fe07382984e..9404bf2e975 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -6,7 +6,7 @@ // Package integrations provides access to the Application Integration API. // -// For product documentation, see: http://www.google.com +// For product documentation, see: https://cloud.google.com/application-integration // // # Creating a client // @@ -1227,6 +1227,47 @@ func (s *EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler +// Trigger configuration +type EnterpriseCrmEventbusProtoCloudSchedulerConfig struct { + // CronTab: Required. The cron tab of cloud scheduler trigger. + CronTab string `json:"cronTab,omitempty"` + + // ErrorMessage: Optional. When the job was deleted from Pantheon UI, + // error_message will be populated when Get/List integrations + ErrorMessage string `json:"errorMessage,omitempty"` + + // Location: Required. The location where associated cloud scheduler job + // will be created + Location string `json:"location,omitempty"` + + // ServiceAccountEmail: Required. Service account used by Cloud + // Scheduler to trigger the integration at scheduled time + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CronTab") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CronTab") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCloudSchedulerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // EnterpriseCrmEventbusProtoCombinedCondition: This message recursively // combines constituent conditions using logical AND. type EnterpriseCrmEventbusProtoCombinedCondition struct { @@ -5954,7 +5995,7 @@ func (s *EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, e } // EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration -// detail of a trigger. Next available id: 16 +// detail of a trigger. Next available id: 17 type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // AlertConfig: An alert threshold configuration for the [trigger + // client + workflow] tuple. If these values are not specified in the @@ -5963,6 +6004,8 @@ type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // + trigger + workflow] when published. AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` + CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` + // Description: User-provided description intended to give more business // context about the task. Description string `json:"description,omitempty"` @@ -6037,6 +6080,7 @@ type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // "CLOUD_PUBSUB_EXTERNAL" // "SFDC_CDC_CHANNEL" // "SFDC_PLATFORM_EVENTS_CHANNEL" + // "CLOUD_SCHEDULER" TriggerType string `json:"triggerType,omitempty"` // ForceSendFields is a list of field names (e.g. "AlertConfig") to @@ -6512,10 +6556,6 @@ type GoogleCloudConnectorsV1AuthConfigSshPublicKey struct { // CertType: Format of SSH Client cert. CertType string `json:"certType,omitempty"` - // Password: This is an optional field used in case client has enabled - // multi-factor authentication - Password *GoogleCloudConnectorsV1Secret `json:"password,omitempty"` - // SshClientCert: SSH Client Cert. It should contain both public and // private key. SshClientCert *GoogleCloudConnectorsV1Secret `json:"sshClientCert,omitempty"` @@ -7390,6 +7430,47 @@ func (s *GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler +// Trigger configuration +type GoogleCloudIntegrationsV1alphaCloudSchedulerConfig struct { + // CronTab: Required. The cron tab of cloud scheduler trigger. + CronTab string `json:"cronTab,omitempty"` + + // ErrorMessage: Optional. When the job was deleted from Pantheon UI, + // error_message will be populated when Get/List integrations + ErrorMessage string `json:"errorMessage,omitempty"` + + // Location: Required. The location where associated cloud scheduler job + // will be created + Location string `json:"location,omitempty"` + + // ServiceAccountEmail: Required. Service account used by Cloud + // Scheduler to trigger the integration at scheduled time + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CronTab") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CronTab") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCloudSchedulerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of // runtime connection schema. type GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata struct { @@ -11121,6 +11202,10 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // configured per [client + trigger + integration] when published. AlertConfig []*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig `json:"alertConfig,omitempty"` + // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related + // metadata + CloudSchedulerConfig *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` + // Description: Optional. User-provided description intended to give // additional business context about the task. Description string `json:"description,omitempty"` @@ -11168,6 +11253,7 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // "SFDC_CHANNEL" - Trigger by Salesforce Channel. // "CLOUD_PUBSUB_EXTERNAL" - Trigger by Pub/Sub external. // "SFDC_CDC_CHANNEL" - SFDC Channel Trigger for CDC. + // "CLOUD_SCHEDULER" - Trigger by Cloud Scheduler job. TriggerType string `json:"triggerType,omitempty"` // ForceSendFields is a list of field names (e.g. "AlertConfig") to @@ -14996,13 +15082,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsTaskStatus return c } -// FilterParamsTriggerId sets the optional parameter -// "filterParams.triggerId": Trigger id. -func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsTriggerId(filterParamsTriggerId string) *ProjectsLocationsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.triggerId", filterParamsTriggerId) - return c -} - // FilterParamsWorkflowName sets the optional parameter // "filterParams.workflowName": Workflow name. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsIntegrationsExecutionsListCall { @@ -15233,11 +15312,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C // "repeated": true, // "type": "string" // }, - // "filterParams.triggerId": { - // "description": "Trigger id.", - // "location": "query", - // "type": "string" - // }, // "filterParams.workflowName": { // "description": "Workflow name.", // "location": "query", @@ -20085,13 +20159,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTa return c } -// FilterParamsTriggerId sets the optional parameter -// "filterParams.triggerId": Trigger id. -func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsTriggerId(filterParamsTriggerId string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { - c.urlParams_.Set("filterParams.triggerId", filterParamsTriggerId) - return c -} - // FilterParamsWorkflowName sets the optional parameter // "filterParams.workflowName": Workflow name. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWorkflowName(filterParamsWorkflowName string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { @@ -20322,11 +20389,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo // "repeated": true, // "type": "string" // }, - // "filterParams.triggerId": { - // "description": "Trigger id.", - // "location": "query", - // "type": "string" - // }, // "filterParams.workflowName": { // "description": "Workflow name.", // "location": "query", diff --git a/jobs/v3/jobs-api.json b/jobs/v3/jobs-api.json index b1fbbdcf364..45fa08e9fc2 100644 --- a/jobs/v3/jobs-api.json +++ b/jobs/v3/jobs-api.json @@ -651,7 +651,7 @@ } } }, - "revision": "20220714", + "revision": "20221024", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -863,7 +863,7 @@ "type": "string" }, "keywordSearchableJobCustomAttributes": { - "description": "Optional. A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword search. Jobs with `string_values` under these specified field keys are returned if any of the values matches the search keyword. Custom field values with parenthesis, brackets and special symbols won't be properly searchable, and those keyword queries need to be surrounded by quotes.", + "description": "Optional. This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword search. Jobs with `string_values` under these specified field keys are returned if any of the values matches the search keyword. Custom field values with parenthesis, brackets and special symbols won't be properly searchable, and those keyword queries need to be surrounded by quotes.", "items": { "type": "string" }, diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index ce57233cb9e..823918719d2 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -560,13 +560,15 @@ type Company struct { // ImageUri: Optional. A URI that hosts the employer's company logo. ImageUri string `json:"imageUri,omitempty"` - // KeywordSearchableJobCustomAttributes: Optional. A list of keys of - // filterable Job.custom_attributes, whose corresponding `string_values` - // are used in keyword search. Jobs with `string_values` under these - // specified field keys are returned if any of the values matches the - // search keyword. Custom field values with parenthesis, brackets and - // special symbols won't be properly searchable, and those keyword - // queries need to be surrounded by quotes. + // KeywordSearchableJobCustomAttributes: Optional. This field is + // deprecated. Please set the searchability of the custom attribute in + // the Job.custom_attributes going forward. A list of keys of filterable + // Job.custom_attributes, whose corresponding `string_values` are used + // in keyword search. Jobs with `string_values` under these specified + // field keys are returned if any of the values matches the search + // keyword. Custom field values with parenthesis, brackets and special + // symbols won't be properly searchable, and those keyword queries need + // to be surrounded by quotes. KeywordSearchableJobCustomAttributes []string `json:"keywordSearchableJobCustomAttributes,omitempty"` // Name: Required during company update. The resource name for a diff --git a/jobs/v3p1beta1/jobs-api.json b/jobs/v3p1beta1/jobs-api.json index dcc346fa95b..ba25f1fc057 100644 --- a/jobs/v3p1beta1/jobs-api.json +++ b/jobs/v3p1beta1/jobs-api.json @@ -681,7 +681,7 @@ } } }, - "revision": "20220714", + "revision": "20221024", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -897,7 +897,7 @@ "type": "string" }, "keywordSearchableJobCustomAttributes": { - "description": "Optional. A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword search. Jobs with `string_values` under these specified field keys are returned if any of the values matches the search keyword. Custom field values with parenthesis, brackets and special symbols won't be properly searchable, and those keyword queries need to be surrounded by quotes.", + "description": "Optional. This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword search. Jobs with `string_values` under these specified field keys are returned if any of the values matches the search keyword. Custom field values with parenthesis, brackets and special symbols won't be properly searchable, and those keyword queries need to be surrounded by quotes.", "items": { "type": "string" }, @@ -1471,7 +1471,7 @@ "id": "HistogramQuery", "properties": { "histogramQuery": { - "description": "An expression specifies a histogram request against matching resources (for example, jobs) for searches. Expression syntax is a aggregation function call with histogram facets and other options. Available aggregation function calls are: * `count(string_histogram_facet)`: Count the number of matching entity, for each distinct attribute value. * `count(numeric_histogram_facet, list of buckets)`: Count the number of matching entity within each bucket. A maximum of 200 histogram buckets are supported. Data types: * Histogram facet: facet names with format a-zA-Z+. * String: string like \"any string with backslash escape for quote(\\\").\" * Number: whole number and floating point number like 10, -1 and -0.01. * List: list of elements with comma(,) separator surrounded by square brackets. For example, [1, 2, 3] and [\"one\", \"two\", \"three\"]. Built-in constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket(start, end[, label]): bucket built-in function creates a bucket with range of start, end). Note that the end is exclusive. For example, bucket(1, MAX, \"positive number\") or bucket(1, 10). Job histogram facets: * company_id: histogram by [Job.distributor_company_id. * company_display_name: histogram by Job.company_display_name. * employment_type: histogram by Job.employment_types. For example, \"FULL_TIME\", \"PART_TIME\". * company_size: histogram by CompanySize, for example, \"SMALL\", \"MEDIUM\", \"BIG\". * publish_time_in_day: histogram by the Job.publish_time in days. Must specify list of numeric buckets in spec. * publish_time_in_month: histogram by the Job.publish_time in months. Must specify list of numeric buckets in spec. * publish_time_in_year: histogram by the Job.publish_time in years. Must specify list of numeric buckets in spec. * degree_type: histogram by the Job.degree_type. For example, \"Bachelors\", \"Masters\". * job_level: histogram by the Job.job_level. For example, \"Entry Level\". * country: histogram by the country code of jobs. For example, \"US\", \"FR\". * admin1: histogram by the admin1 code of jobs, which is a global placeholder referring to the state, province, or the particular term a country uses to define the geographic structure below the country level. For example, \"CA\", \"IL\". * city: histogram by a combination of the \"city name, admin1 code\". For example, \"Mountain View, CA\", \"New York, NY\". * admin1_country: histogram by a combination of the \"admin1 code, country\". For example, \"CA, US\", \"IL, US\". * city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude). For example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. * locale: histogram by the Job.language_code. For example, \"en-US\", \"fr-FR\". * language: histogram by the language subtag of the Job.language_code. For example, \"en\", \"fr\". * category: histogram by the JobCategory. For example, \"COMPUTER_AND_IT\", \"HEALTHCARE\". * base_compensation_unit: histogram by the CompensationUnit of base salary. For example, \"WEEKLY\", \"MONTHLY\". * base_compensation: histogram by the base salary. Must specify list of numeric buckets to group results by. * annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. * annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. * string_custom_attribute: histogram by string Job.custom_attributes. Values can be accessed via square bracket notations like string_custom_attribute[\"key1\"]. * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values can be accessed via square bracket notations like numeric_custom_attribute[\"key1\"]. Must specify list of numeric buckets to group results by. Example expressions: * count(admin1) * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), bucket(100000, MAX)]) * count(string_custom_attribute[\"some-string-custom-attribute\"]) * count(numeric_custom_attribute[\"some-numeric-custom-attribute\"], [bucket(MIN, 0, \"negative\"), bucket(0, MAX, \"non-negative\")])", + "description": "An expression specifies a histogram request against matching resources (for example, jobs) for searches. Expression syntax is a aggregation function call with histogram facets and other options. Available aggregation function calls are: * `count(string_histogram_facet)`: Count the number of matching entity, for each distinct attribute value. * `count(numeric_histogram_facet, list of buckets)`: Count the number of matching entity within each bucket. A maximum of 200 histogram buckets are supported. Data types: * Histogram facet: facet names with format a-zA-Z+. * String: string like \"any string with backslash escape for quote(\\\").\" * Number: whole number and floating point number like 10, -1 and -0.01. * List: list of elements with comma(,) separator surrounded by square brackets. For example, [1, 2, 3] and [\"one\", \"two\", \"three\"]. Built-in constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket(start, end[, label]): bucket built-in function creates a bucket with range of start, end). Note that the end is exclusive. For example, bucket(1, MAX, \"positive number\") or bucket(1, 10). Job histogram facets: * company_id: histogram by [Job.distributor_company_id. * company_display_name: histogram by Job.company_display_name. * employment_type: histogram by Job.employment_types. For example, \"FULL_TIME\", \"PART_TIME\". * company_size (DEPRECATED): histogram by CompanySize, for example, \"SMALL\", \"MEDIUM\", \"BIG\". * publish_time_in_day: histogram by the Job.publish_time in days. Must specify list of numeric buckets in spec. * publish_time_in_month: histogram by the Job.publish_time in months. Must specify list of numeric buckets in spec. * publish_time_in_year: histogram by the Job.publish_time in years. Must specify list of numeric buckets in spec. * degree_type: histogram by the Job.degree_type. For example, \"Bachelors\", \"Masters\". * job_level: histogram by the Job.job_level. For example, \"Entry Level\". * country: histogram by the country code of jobs. For example, \"US\", \"FR\". * admin1: histogram by the admin1 code of jobs, which is a global placeholder referring to the state, province, or the particular term a country uses to define the geographic structure below the country level. For example, \"CA\", \"IL\". * city: histogram by a combination of the \"city name, admin1 code\". For example, \"Mountain View, CA\", \"New York, NY\". * admin1_country: histogram by a combination of the \"admin1 code, country\". For example, \"CA, US\", \"IL, US\". * city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude). For example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. * locale: histogram by the Job.language_code. For example, \"en-US\", \"fr-FR\". * language: histogram by the language subtag of the Job.language_code. For example, \"en\", \"fr\". * category: histogram by the JobCategory. For example, \"COMPUTER_AND_IT\", \"HEALTHCARE\". * base_compensation_unit: histogram by the CompensationUnit of base salary. For example, \"WEEKLY\", \"MONTHLY\". * base_compensation: histogram by the base salary. Must specify list of numeric buckets to group results by. * annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. * annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. * string_custom_attribute: histogram by string Job.custom_attributes. Values can be accessed via square bracket notations like string_custom_attribute[\"key1\"]. * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values can be accessed via square bracket notations like numeric_custom_attribute[\"key1\"]. Must specify list of numeric buckets to group results by. Example expressions: * count(admin1) * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), bucket(100000, MAX)]) * count(string_custom_attribute[\"some-string-custom-attribute\"]) * count(numeric_custom_attribute[\"some-numeric-custom-attribute\"], [bucket(MIN, 0, \"negative\"), bucket(0, MAX, \"non-negative\")])", "type": "string" } }, diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index 7c620b811ad..1421af53f9a 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -574,13 +574,15 @@ type Company struct { // ImageUri: Optional. A URI that hosts the employer's company logo. ImageUri string `json:"imageUri,omitempty"` - // KeywordSearchableJobCustomAttributes: Optional. A list of keys of - // filterable Job.custom_attributes, whose corresponding `string_values` - // are used in keyword search. Jobs with `string_values` under these - // specified field keys are returned if any of the values matches the - // search keyword. Custom field values with parenthesis, brackets and - // special symbols won't be properly searchable, and those keyword - // queries need to be surrounded by quotes. + // KeywordSearchableJobCustomAttributes: Optional. This field is + // deprecated. Please set the searchability of the custom attribute in + // the Job.custom_attributes going forward. A list of keys of filterable + // Job.custom_attributes, whose corresponding `string_values` are used + // in keyword search. Jobs with `string_values` under these specified + // field keys are returned if any of the values matches the search + // keyword. Custom field values with parenthesis, brackets and special + // symbols won't be properly searchable, and those keyword queries need + // to be surrounded by quotes. KeywordSearchableJobCustomAttributes []string `json:"keywordSearchableJobCustomAttributes,omitempty"` // Name: Required during company update. The resource name for a @@ -1543,8 +1545,8 @@ type HistogramQuery struct { // histogram by [Job.distributor_company_id. * company_display_name: // histogram by Job.company_display_name. * employment_type: histogram // by Job.employment_types. For example, "FULL_TIME", "PART_TIME". * - // company_size: histogram by CompanySize, for example, "SMALL", - // "MEDIUM", "BIG". * publish_time_in_day: histogram by the + // company_size (DEPRECATED): histogram by CompanySize, for example, + // "SMALL", "MEDIUM", "BIG". * publish_time_in_day: histogram by the // Job.publish_time in days. Must specify list of numeric buckets in // spec. * publish_time_in_month: histogram by the Job.publish_time in // months. Must specify list of numeric buckets in spec. * diff --git a/jobs/v4/jobs-api.json b/jobs/v4/jobs-api.json index c16be118a52..b95375cf1b4 100644 --- a/jobs/v4/jobs-api.json +++ b/jobs/v4/jobs-api.json @@ -903,7 +903,7 @@ } } }, - "revision": "20220714", + "revision": "20221024", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -1223,7 +1223,7 @@ "type": "string" }, "keywordSearchableJobCustomAttributes": { - "description": "A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword searches. Jobs with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and those keyword queries must be surrounded by quotes.", + "description": "This field is deprecated. Please set the searchability of the custom attribute in the Job.custom_attributes going forward. A list of keys of filterable Job.custom_attributes, whose corresponding `string_values` are used in keyword searches. Jobs with `string_values` under these specified field keys are returned if any of the values match the search keyword. Custom field values with parenthesis, brackets and special symbols are not searchable as-is, and those keyword queries must be surrounded by quotes.", "items": { "type": "string" }, @@ -2776,7 +2776,7 @@ "type": "boolean" }, "histogramQueries": { - "description": "An expression specifies a histogram request against matching jobs. Expression syntax is an aggregation function call with histogram facets and other options. Available aggregation function calls are: * `count(string_histogram_facet)`: Count the number of matching entities, for each distinct attribute value. * `count(numeric_histogram_facet, list of buckets)`: Count the number of matching entities within each bucket. A maximum of 200 histogram buckets are supported. Data types: * Histogram facet: facet names with format `a-zA-Z+`. * String: string like \"any string with backslash escape for quote(\\\").\" * Number: whole number and floating point number like 10, -1 and -0.01. * List: list of elements with comma(,) separator surrounded by square brackets, for example, [1, 2, 3] and [\"one\", \"two\", \"three\"]. Built-in constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket(start, end[, label]): bucket built-in function creates a bucket with range of start, end). Note that the end is exclusive, for example, bucket(1, MAX, \"positive number\") or bucket(1, 10). Job histogram facets: * company_display_name: histogram by [Job.company_display_name. * employment_type: histogram by Job.employment_types, for example, \"FULL_TIME\", \"PART_TIME\". * company_size: histogram by CompanySize, for example, \"SMALL\", \"MEDIUM\", \"BIG\". * publish_time_in_day: histogram by the Job.posting_publish_time in days. Must specify list of numeric buckets in spec. * publish_time_in_month: histogram by the Job.posting_publish_time in months. Must specify list of numeric buckets in spec. * publish_time_in_year: histogram by the Job.posting_publish_time in years. Must specify list of numeric buckets in spec. * degree_types: histogram by the Job.degree_types, for example, \"Bachelors\", \"Masters\". * job_level: histogram by the Job.job_level, for example, \"Entry Level\". * country: histogram by the country code of jobs, for example, \"US\", \"FR\". * admin1: histogram by the admin1 code of jobs, which is a global placeholder referring to the state, province, or the particular term a country uses to define the geographic structure below the country level, for example, \"CA\", \"IL\". * city: histogram by a combination of the \"city name, admin1 code\". For example, \"Mountain View, CA\", \"New York, NY\". * admin1_country: histogram by a combination of the \"admin1 code, country\", for example, \"CA, US\", \"IL, US\". * city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. * locale: histogram by the Job.language_code, for example, \"en-US\", \"fr-FR\". * language: histogram by the language subtag of the Job.language_code, for example, \"en\", \"fr\". * category: histogram by the JobCategory, for example, \"COMPUTER_AND_IT\", \"HEALTHCARE\". * base_compensation_unit: histogram by the CompensationInfo.CompensationUnit of base salary, for example, \"WEEKLY\", \"MONTHLY\". * base_compensation: histogram by the base salary. Must specify list of numeric buckets to group results by. * annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. * annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. * string_custom_attribute: histogram by string Job.custom_attributes. Values can be accessed via square bracket notations like string_custom_attribute[\"key1\"]. * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values can be accessed via square bracket notations like numeric_custom_attribute[\"key1\"]. Must specify list of numeric buckets to group results by. Example expressions: * `count(admin1)` * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), bucket(100000, MAX)])` * `count(string_custom_attribute[\"some-string-custom-attribute\"])` * `count(numeric_custom_attribute[\"some-numeric-custom-attribute\"], [bucket(MIN, 0, \"negative\"), bucket(0, MAX, \"non-negative\")])`", + "description": "An expression specifies a histogram request against matching jobs. Expression syntax is an aggregation function call with histogram facets and other options. Available aggregation function calls are: * `count(string_histogram_facet)`: Count the number of matching entities, for each distinct attribute value. * `count(numeric_histogram_facet, list of buckets)`: Count the number of matching entities within each bucket. A maximum of 200 histogram buckets are supported. Data types: * Histogram facet: facet names with format `a-zA-Z+`. * String: string like \"any string with backslash escape for quote(\\\").\" * Number: whole number and floating point number like 10, -1 and -0.01. * List: list of elements with comma(,) separator surrounded by square brackets, for example, [1, 2, 3] and [\"one\", \"two\", \"three\"]. Built-in constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket(start, end[, label]): bucket built-in function creates a bucket with range of start, end). Note that the end is exclusive, for example, bucket(1, MAX, \"positive number\") or bucket(1, 10). Job histogram facets: * company_display_name: histogram by [Job.company_display_name. * employment_type: histogram by Job.employment_types, for example, \"FULL_TIME\", \"PART_TIME\". * company_size (DEPRECATED): histogram by CompanySize, for example, \"SMALL\", \"MEDIUM\", \"BIG\". * publish_time_in_day: histogram by the Job.posting_publish_time in days. Must specify list of numeric buckets in spec. * publish_time_in_month: histogram by the Job.posting_publish_time in months. Must specify list of numeric buckets in spec. * publish_time_in_year: histogram by the Job.posting_publish_time in years. Must specify list of numeric buckets in spec. * degree_types: histogram by the Job.degree_types, for example, \"Bachelors\", \"Masters\". * job_level: histogram by the Job.job_level, for example, \"Entry Level\". * country: histogram by the country code of jobs, for example, \"US\", \"FR\". * admin1: histogram by the admin1 code of jobs, which is a global placeholder referring to the state, province, or the particular term a country uses to define the geographic structure below the country level, for example, \"CA\", \"IL\". * city: histogram by a combination of the \"city name, admin1 code\". For example, \"Mountain View, CA\", \"New York, NY\". * admin1_country: histogram by a combination of the \"admin1 code, country\", for example, \"CA, US\", \"IL, US\". * city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. * locale: histogram by the Job.language_code, for example, \"en-US\", \"fr-FR\". * language: histogram by the language subtag of the Job.language_code, for example, \"en\", \"fr\". * category: histogram by the JobCategory, for example, \"COMPUTER_AND_IT\", \"HEALTHCARE\". * base_compensation_unit: histogram by the CompensationInfo.CompensationUnit of base salary, for example, \"WEEKLY\", \"MONTHLY\". * base_compensation: histogram by the base salary. Must specify list of numeric buckets to group results by. * annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. * annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. * string_custom_attribute: histogram by string Job.custom_attributes. Values can be accessed via square bracket notations like string_custom_attribute[\"key1\"]. * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values can be accessed via square bracket notations like numeric_custom_attribute[\"key1\"]. Must specify list of numeric buckets to group results by. Example expressions: * `count(admin1)` * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), bucket(100000, MAX)])` * `count(string_custom_attribute[\"some-string-custom-attribute\"])` * `count(numeric_custom_attribute[\"some-numeric-custom-attribute\"], [bucket(MIN, 0, \"negative\"), bucket(0, MAX, \"non-negative\")])`", "items": { "$ref": "HistogramQuery" }, diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index af4c861b956..712fb2cf94a 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -723,7 +723,9 @@ type Company struct { // ImageUri: A URI that hosts the employer's company logo. ImageUri string `json:"imageUri,omitempty"` - // KeywordSearchableJobCustomAttributes: A list of keys of filterable + // KeywordSearchableJobCustomAttributes: This field is deprecated. + // Please set the searchability of the custom attribute in the + // Job.custom_attributes going forward. A list of keys of filterable // Job.custom_attributes, whose corresponding `string_values` are used // in keyword searches. Jobs with `string_values` under these specified // field keys are returned if any of the values match the search @@ -3250,8 +3252,8 @@ type SearchJobsRequest struct { // facets: * company_display_name: histogram by // [Job.company_display_name. * employment_type: histogram by // Job.employment_types, for example, "FULL_TIME", "PART_TIME". * - // company_size: histogram by CompanySize, for example, "SMALL", - // "MEDIUM", "BIG". * publish_time_in_day: histogram by the + // company_size (DEPRECATED): histogram by CompanySize, for example, + // "SMALL", "MEDIUM", "BIG". * publish_time_in_day: histogram by the // Job.posting_publish_time in days. Must specify list of numeric // buckets in spec. * publish_time_in_month: histogram by the // Job.posting_publish_time in months. Must specify list of numeric diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index a3e1148d02b..8cfc8e19c41 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -488,7 +488,7 @@ ], "parameters": { "name": { - "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 100 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", "location": "path", "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", "required": true, @@ -897,7 +897,7 @@ } } }, - "revision": "20221016", + "revision": "20221024", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -1027,7 +1027,7 @@ "type": "array" }, "name": { - "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 100 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", "type": "string" }, "resourceTypes": { diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 82b0395332d..9c2b0954a87 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -455,7 +455,7 @@ type GoogleCloudOrgpolicyV2CustomConstraint struct { // `organizations/{organization_id}/customConstraints/{custom_constraint_ // id}` Example : // "organizations/123/customConstraints/custom.createOnlyE2TypeVms" The - // max length is 100 characters and the min length is 1. Note that the + // max length is 70 characters and the min length is 1. Note that the // prefix "organizations/{organization_id}/customConstraints/" is not // counted. Name string `json:"name,omitempty"` @@ -2891,7 +2891,7 @@ type OrganizationsCustomConstraintsPatchCall struct { // `organizations/{organization_id}/customConstraints/{custom_constrain // t_id}` Example : // "organizations/123/customConstraints/custom.createOnlyE2TypeVms" -// The max length is 100 characters and the min length is 1. Note that +// The max length is 70 characters and the min length is 1. Note that // the prefix "organizations/{organization_id}/customConstraints/" is // not counted. func (r *OrganizationsCustomConstraintsService) Patch(name string, googlecloudorgpolicyv2customconstraint *GoogleCloudOrgpolicyV2CustomConstraint) *OrganizationsCustomConstraintsPatchCall { @@ -3002,7 +3002,7 @@ func (c *OrganizationsCustomConstraintsPatchCall) Do(opts ...googleapi.CallOptio // ], // "parameters": { // "name": { - // "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 100 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", + // "description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\" The max length is 70 characters and the min length is 1. Note that the prefix \"organizations/{organization_id}/customConstraints/\" is not counted.", // "location": "path", // "pattern": "^organizations/[^/]+/customConstraints/[^/]+$", // "required": true, diff --git a/servicecontrol/v1/servicecontrol-api.json b/servicecontrol/v1/servicecontrol-api.json index ed7c37f6304..c39174b9cee 100644 --- a/servicecontrol/v1/servicecontrol-api.json +++ b/servicecontrol/v1/servicecontrol-api.json @@ -197,7 +197,7 @@ } } }, - "revision": "20220923", + "revision": "20221014", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "AllocateInfo": { @@ -1600,7 +1600,7 @@ "id": "RequestMetadata", "properties": { "callerIp": { - "description": "The IP address of the caller. For caller from internet, this will be public IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP address, this will be the VM's external IP address. For caller from a Compute Engine VM without external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise the `caller_ip` will be redacted to \"gce-internal-ip\". See https://cloud.google.com/compute/docs/vpc/ for more information.", + "description": "The IP address of the caller. For a caller from the internet, this will be the public IPv4 or IPv6 address. For calls made from inside Google's internal production network from one GCP service to another, `caller_ip` will be redacted to \"private\". For a caller from a Compute Engine VM with a external IP address, `caller_ip` will be the VM's external IP address. For a caller from a Compute Engine VM without a external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise `caller_ip` will be redacted to \"gce-internal-ip\". See https://cloud.google.com/compute/docs/vpc/ for more information.", "type": "string" }, "callerNetwork": { @@ -1608,7 +1608,7 @@ "type": "string" }, "callerSuppliedUserAgent": { - "description": "The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app. NOLINT", + "description": "The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app.", "type": "string" }, "destinationAttributes": { diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index 24401f77efa..be384ea2863 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -2404,15 +2404,17 @@ func (s *Request) MarshalJSON() ([]byte, error) { // RequestMetadata: Metadata about the request. type RequestMetadata struct { - // CallerIp: The IP address of the caller. For caller from internet, - // this will be public IPv4 or IPv6 address. For caller from a Compute - // Engine VM with external IP address, this will be the VM's external IP - // address. For caller from a Compute Engine VM without external IP - // address, if the VM is in the same organization (or project) as the - // accessed resource, `caller_ip` will be the VM's internal IPv4 - // address, otherwise the `caller_ip` will be redacted to - // "gce-internal-ip". See https://cloud.google.com/compute/docs/vpc/ for - // more information. + // CallerIp: The IP address of the caller. For a caller from the + // internet, this will be the public IPv4 or IPv6 address. For calls + // made from inside Google's internal production network from one GCP + // service to another, `caller_ip` will be redacted to "private". For a + // caller from a Compute Engine VM with a external IP address, + // `caller_ip` will be the VM's external IP address. For a caller from a + // Compute Engine VM without a external IP address, if the VM is in the + // same organization (or project) as the accessed resource, `caller_ip` + // will be the VM's internal IPv4 address, otherwise `caller_ip` will be + // redacted to "gce-internal-ip". See + // https://cloud.google.com/compute/docs/vpc/ for more information. CallerIp string `json:"callerIp,omitempty"` // CallerNetwork: The network of the caller. Set only if the network @@ -2431,7 +2433,7 @@ type RequestMetadata struct { // apitools-client/1.0 gcloud/0.9.62`: The request was made by the // Google Cloud SDK CLI (gcloud). + `AppEngine-Google; // (+http://code.google.com/appengine; appid: s~my-project`: The request - // was made from the `my-project` App Engine app. NOLINT + // was made from the `my-project` App Engine app. CallerSuppliedUserAgent string `json:"callerSuppliedUserAgent,omitempty"` // DestinationAttributes: The destination of a network activity, such as diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index 7c47b020286..863be1ff51d 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -169,7 +169,7 @@ } } }, - "revision": "20220915", + "revision": "20221014", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { @@ -657,7 +657,7 @@ "id": "RequestMetadata", "properties": { "callerIp": { - "description": "The IP address of the caller. For caller from internet, this will be public IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP address, this will be the VM's external IP address. For caller from a Compute Engine VM without external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise the `caller_ip` will be redacted to \"gce-internal-ip\". See https://cloud.google.com/compute/docs/vpc/ for more information.", + "description": "The IP address of the caller. For a caller from the internet, this will be the public IPv4 or IPv6 address. For calls made from inside Google's internal production network from one GCP service to another, `caller_ip` will be redacted to \"private\". For a caller from a Compute Engine VM with a external IP address, `caller_ip` will be the VM's external IP address. For a caller from a Compute Engine VM without a external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise `caller_ip` will be redacted to \"gce-internal-ip\". See https://cloud.google.com/compute/docs/vpc/ for more information.", "type": "string" }, "callerNetwork": { @@ -665,7 +665,7 @@ "type": "string" }, "callerSuppliedUserAgent": { - "description": "The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app. NOLINT", + "description": "The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app.", "type": "string" }, "destinationAttributes": { diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index c6415f752f9..bc9c315ea89 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -924,15 +924,17 @@ func (s *Request) MarshalJSON() ([]byte, error) { // RequestMetadata: Metadata about the request. type RequestMetadata struct { - // CallerIp: The IP address of the caller. For caller from internet, - // this will be public IPv4 or IPv6 address. For caller from a Compute - // Engine VM with external IP address, this will be the VM's external IP - // address. For caller from a Compute Engine VM without external IP - // address, if the VM is in the same organization (or project) as the - // accessed resource, `caller_ip` will be the VM's internal IPv4 - // address, otherwise the `caller_ip` will be redacted to - // "gce-internal-ip". See https://cloud.google.com/compute/docs/vpc/ for - // more information. + // CallerIp: The IP address of the caller. For a caller from the + // internet, this will be the public IPv4 or IPv6 address. For calls + // made from inside Google's internal production network from one GCP + // service to another, `caller_ip` will be redacted to "private". For a + // caller from a Compute Engine VM with a external IP address, + // `caller_ip` will be the VM's external IP address. For a caller from a + // Compute Engine VM without a external IP address, if the VM is in the + // same organization (or project) as the accessed resource, `caller_ip` + // will be the VM's internal IPv4 address, otherwise `caller_ip` will be + // redacted to "gce-internal-ip". See + // https://cloud.google.com/compute/docs/vpc/ for more information. CallerIp string `json:"callerIp,omitempty"` // CallerNetwork: The network of the caller. Set only if the network @@ -951,7 +953,7 @@ type RequestMetadata struct { // apitools-client/1.0 gcloud/0.9.62`: The request was made by the // Google Cloud SDK CLI (gcloud). + `AppEngine-Google; // (+http://code.google.com/appengine; appid: s~my-project`: The request - // was made from the `my-project` App Engine app. NOLINT + // was made from the `my-project` App Engine app. CallerSuppliedUserAgent string `json:"callerSuppliedUserAgent,omitempty"` // DestinationAttributes: The destination of a network activity, such as diff --git a/tagmanager/v2/tagmanager-api.json b/tagmanager/v2/tagmanager-api.json index 305b6c424d9..3c587ed181d 100644 --- a/tagmanager/v2/tagmanager-api.json +++ b/tagmanager/v2/tagmanager-api.json @@ -451,7 +451,7 @@ ] }, "snippet": { - "description": "Gets the JavaScript snippet for a Container.", + "description": "Gets the tagging snippet for a Container.", "flatPath": "tagmanager/v2/accounts/{accountsId}/containers/{containersId}:snippet", "httpMethod": "GET", "id": "tagmanager.accounts.containers.snippet", @@ -469,7 +469,7 @@ }, "path": "tagmanager/v2/{+path}:snippet", "response": { - "type": "string" + "$ref": "GetContainerSnippetResponse" }, "scopes": [ "https://www.googleapis.com/auth/tagmanager.edit.containers", @@ -549,7 +549,7 @@ ], "parameters": { "allowUserPermissionFeatureUpdate": { - "description": "Must be set to true to allow features.user_permissions to change from false to true (i.e. Google product owned to GTM permission). If this operation causes an update but this bit is false, the operation will fail.", + "description": "Must be set to true to allow features.user_permissions to change from false to true. If this operation causes an update but this bit is false, the operation will fail.", "location": "query", "type": "boolean" }, @@ -3710,7 +3710,7 @@ } } }, - "revision": "20221012", + "revision": "20221024", "rootUrl": "https://tagmanager.googleapis.com/", "schemas": { "Account": { @@ -4920,6 +4920,16 @@ }, "type": "object" }, + "GetContainerSnippetResponse": { + "id": "GetContainerSnippetResponse", + "properties": { + "snippet": { + "description": "Tagging snippet for a Container.", + "type": "string" + } + }, + "type": "object" + }, "GetWorkspaceStatusResponse": { "description": "The changes that have occurred in the workspace since the base container version.", "id": "GetWorkspaceStatusResponse", diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index 704f255b292..8115d3f58de 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -1706,6 +1706,37 @@ func (s *GalleryReference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GetContainerSnippetResponse struct { + // Snippet: Tagging snippet for a Container. + Snippet string `json:"snippet,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Snippet") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Snippet") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GetContainerSnippetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetContainerSnippetResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GetWorkspaceStatusResponse: The changes that have occurred in the // workspace since the base container version. type GetWorkspaceStatusResponse struct { @@ -5497,7 +5528,7 @@ type AccountsContainersSnippetCall struct { header_ http.Header } -// Snippet: Gets the JavaScript snippet for a Container. +// Snippet: Gets the tagging snippet for a Container. // // - path: Container snippet's API relative path. Example: // accounts/{account_id}/containers/{container_id}:snippet. @@ -5569,19 +5600,44 @@ func (c *AccountsContainersSnippetCall) doRequest(alt string) (*http.Response, e } // Do executes the "tagmanager.accounts.containers.snippet" call. -func (c *AccountsContainersSnippetCall) Do(opts ...googleapi.CallOption) error { +// Exactly one of *GetContainerSnippetResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GetContainerSnippetResponse.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 *AccountsContainersSnippetCall) Do(opts ...googleapi.CallOption) (*GetContainerSnippetResponse, 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, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } if err != nil { - return err + return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return nil, err } - return nil + ret := &GetContainerSnippetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil // { - // "description": "Gets the JavaScript snippet for a Container.", + // "description": "Gets the tagging snippet for a Container.", // "flatPath": "tagmanager/v2/accounts/{accountsId}/containers/{containersId}:snippet", // "httpMethod": "GET", // "id": "tagmanager.accounts.containers.snippet", @@ -5599,7 +5655,7 @@ func (c *AccountsContainersSnippetCall) Do(opts ...googleapi.CallOption) error { // }, // "path": "tagmanager/v2/{+path}:snippet", // "response": { - // "type": "string" + // "$ref": "GetContainerSnippetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/tagmanager.edit.containers", @@ -5937,9 +5993,9 @@ func (r *AccountsContainersDestinationsService) Link(parent string) *AccountsCon // AllowUserPermissionFeatureUpdate sets the optional parameter // "allowUserPermissionFeatureUpdate": Must be set to true to allow -// features.user_permissions to change from false to true (i.e. Google -// product owned to GTM permission). If this operation causes an update -// but this bit is false, the operation will fail. +// features.user_permissions to change from false to true. If this +// operation causes an update but this bit is false, the operation will +// fail. func (c *AccountsContainersDestinationsLinkCall) AllowUserPermissionFeatureUpdate(allowUserPermissionFeatureUpdate bool) *AccountsContainersDestinationsLinkCall { c.urlParams_.Set("allowUserPermissionFeatureUpdate", fmt.Sprint(allowUserPermissionFeatureUpdate)) return c @@ -6047,7 +6103,7 @@ func (c *AccountsContainersDestinationsLinkCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "allowUserPermissionFeatureUpdate": { - // "description": "Must be set to true to allow features.user_permissions to change from false to true (i.e. Google product owned to GTM permission). If this operation causes an update but this bit is false, the operation will fail.", + // "description": "Must be set to true to allow features.user_permissions to change from false to true. If this operation causes an update but this bit is false, the operation will fail.", // "location": "query", // "type": "boolean" // }, diff --git a/translate/v3/translate-api.json b/translate/v3/translate-api.json index 9d26b0fb77d..070bccd700f 100644 --- a/translate/v3/translate-api.json +++ b/translate/v3/translate-api.json @@ -931,7 +931,7 @@ } } }, - "revision": "20220909", + "revision": "20221021", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { @@ -1607,6 +1607,10 @@ "$ref": "TranslateTextGlossaryConfig", "description": "Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned." }, + "isTranslateNativePdfOnly": { + "description": "Optional. is_translate_native_pdf_only field for external customers. If true, the page limit of online native pdf translation is 300 and only native pdf pages will be translated.", + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index 27a401efd04..bcb77a61467 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -1643,6 +1643,12 @@ type TranslateDocumentRequest struct { // otherwise an INVALID_ARGUMENT (400) error is returned. GlossaryConfig *TranslateTextGlossaryConfig `json:"glossaryConfig,omitempty"` + // IsTranslateNativePdfOnly: Optional. is_translate_native_pdf_only + // field for external customers. If true, the page limit of online + // native pdf translation is 300 and only native pdf pages will be + // translated. + IsTranslateNativePdfOnly bool `json:"isTranslateNativePdfOnly,omitempty"` + // Labels: Optional. The labels with user-defined metadata for the // request. Label keys and values can be no longer than 63 characters // (Unicode codepoints), can only contain lowercase letters, numeric diff --git a/translate/v3beta1/translate-api.json b/translate/v3beta1/translate-api.json index fde38a752e6..eb5a293a690 100644 --- a/translate/v3beta1/translate-api.json +++ b/translate/v3beta1/translate-api.json @@ -744,7 +744,7 @@ } } }, - "revision": "20220909", + "revision": "20221021", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { @@ -1331,6 +1331,10 @@ "$ref": "TranslateTextGlossaryConfig", "description": "Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned." }, + "isTranslateNativePdfOnly": { + "description": "Optional. is_translate_native_pdf_only field for external customers. If true, the page limit of online native pdf translation is 300 and only native pdf pages will be translated.", + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index 931666e56ea..671186abd6f 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -1450,6 +1450,12 @@ type TranslateDocumentRequest struct { // otherwise an INVALID_ARGUMENT (400) error is returned. GlossaryConfig *TranslateTextGlossaryConfig `json:"glossaryConfig,omitempty"` + // IsTranslateNativePdfOnly: Optional. is_translate_native_pdf_only + // field for external customers. If true, the page limit of online + // native pdf translation is 300 and only native pdf pages will be + // translated. + IsTranslateNativePdfOnly bool `json:"isTranslateNativePdfOnly,omitempty"` + // Labels: Optional. The labels with user-defined metadata for the // request. Label keys and values can be no longer than 63 characters // (Unicode codepoints), can only contain lowercase letters, numeric