diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index d93a906f0ae..4aa5be41524 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -10075,7 +10075,7 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" @@ -10213,7 +10213,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" @@ -10668,7 +10668,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" @@ -11107,7 +11107,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" @@ -11455,7 +11455,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100.", "format": "int32", "location": "query", "type": "integer" @@ -20930,7 +20930,7 @@ } } }, - "revision": "20250920", + "revision": "20250926", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -39846,7 +39846,7 @@ }, "packageSpec": { "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", - "description": "Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes." + "description": "Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. The `deployment_source` field should not be set if `package_spec` is specified." }, "serviceAccount": { "description": "Optional. The service account that the Reasoning Engine artifact runs as. It should have \"roles/storage.objectViewer\" for reading the user project's Cloud Storage and \"roles/aiplatform.user\" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used.", @@ -39903,7 +39903,7 @@ "type": "object" }, "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec": { - "description": "User provided package spec like pickled object and package requirements.", + "description": "User-provided package specification, containing pickled object and package requirements.", "id": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", "properties": { "dependencyFilesGcsUri": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index d2cf5e4a398..a33a38860ab 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -27803,7 +27803,8 @@ type GoogleCloudAiplatformV1ReasoningEngineSpec struct { // PackageSpec: Optional. User provided package spec of the ReasoningEngine. // Ignored when users directly specify a deployment image through // `deployment_spec.first_party_image_override`, but keeping the field_behavior - // to avoid introducing breaking changes. + // to avoid introducing breaking changes. The `deployment_source` field should + // not be set if `package_spec` is specified. PackageSpec *GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec `json:"packageSpec,omitempty"` // ServiceAccount: Optional. The service account that the Reasoning Engine // artifact runs as. It should have "roles/storage.objectViewer" for reading @@ -27879,8 +27880,8 @@ func (s GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec: User provided package -// spec like pickled object and package requirements. +// GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec: User-provided package +// specification, containing pickled object and package requirements. type GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec struct { // DependencyFilesGcsUri: Optional. The Cloud Storage URI of the dependency // files in tar.gz format. @@ -79837,7 +79838,7 @@ func (r *ProjectsLocationsMetadataStoresService) List(parent string) *ProjectsLo // PageSize sets the optional parameter "pageSize": The maximum number of // Metadata Stores to return. The service may return fewer. Must be in range -// 1-1000, inclusive. Defaults to 100. +// 1-100, inclusive. Defaults to 100. func (c *ProjectsLocationsMetadataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -80361,7 +80362,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) OrderBy(orderBy strin } // PageSize sets the optional parameter "pageSize": The maximum number of -// Artifacts to return. The service may return fewer. Must be in range 1-1000, +// Artifacts to return. The service may return fewer. Must be in range 1-100, // inclusive. Defaults to 100. func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -82069,7 +82070,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) OrderBy(orderBy string } // PageSize sets the optional parameter "pageSize": The maximum number of -// Contexts to return. The service may return fewer. Must be in range 1-1000, +// Contexts to return. The service may return fewer. Must be in range 1-100, // inclusive. Defaults to 100. func (c *ProjectsLocationsMetadataStoresContextsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -83738,7 +83739,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) OrderBy(orderBy stri } // PageSize sets the optional parameter "pageSize": The maximum number of -// Executions to return. The service may return fewer. Must be in range 1-1000, +// Executions to return. The service may return fewer. Must be in range 1-100, // inclusive. Defaults to 100. func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -85051,7 +85052,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Filter(filter s // PageSize sets the optional parameter "pageSize": The maximum number of // MetadataSchemas to return. The service may return fewer. Must be in range -// 1-1000, inclusive. Defaults to 100. +// 1-100, inclusive. Defaults to 100. func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index a52796c068d..96886a0a9fc 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -159,6 +159,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/operations", @@ -558,7 +563,7 @@ } } }, - "revision": "20250908", + "revision": "20250929", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1087,6 +1092,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index a9d1b6a1315..784ccc9ef6e 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -983,6 +983,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1669,6 +1674,19 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 473e7852f4f..94449549ead 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -699,6 +699,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v2/{+name}/operations", @@ -750,7 +755,7 @@ } } }, - "revision": "20250908", + "revision": "20250929", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1484,6 +1489,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index cbdcfdf421f..7a29a91b93c 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1103,6 +1103,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4147,6 +4152,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 73997c7f219..46523742104 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -699,6 +699,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v2alpha/{+name}/operations", @@ -750,7 +755,7 @@ } } }, - "revision": "20250908", + "revision": "20250929", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1484,6 +1489,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 8cbe2c5c4c1..5086f379d21 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1103,6 +1103,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4147,6 +4152,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index e7186d61624..8680f533b03 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -699,6 +699,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v2beta/{+name}/operations", @@ -750,7 +755,7 @@ } } }, - "revision": "20250908", + "revision": "20250929", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1484,6 +1489,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index b3da3582bb5..9aeda11e95d 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1103,6 +1103,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4147,6 +4152,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/cloudscheduler/v1/cloudscheduler-api.json b/cloudscheduler/v1/cloudscheduler-api.json index b6cb0d8d581..3170583d963 100644 --- a/cloudscheduler/v1/cloudscheduler-api.json +++ b/cloudscheduler/v1/cloudscheduler-api.json @@ -530,6 +530,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -547,7 +552,7 @@ } } }, - "revision": "20250917", + "revision": "20250925", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -832,6 +837,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index b7435b13666..93579b01d21 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -612,6 +612,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2550,6 +2555,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index 2f487413732..a3634ebf28c 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -501,6 +501,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1alpha1/{+name}/operations", @@ -518,7 +523,7 @@ } } }, - "revision": "20250918", + "revision": "20250925", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -907,6 +912,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index cb3b9dcfacf..e0c3423f429 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -589,6 +589,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2482,6 +2487,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 9f29cc0f48a..c9a1adfcaec 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2685,7 +2685,7 @@ } } }, - "revision": "20250916", + "revision": "20250923", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3191,7 +3191,13 @@ "AutoscaledRolloutPolicy": { "description": "Autoscaled rollout policy utilizes the cluster autoscaler during blue-green upgrade to scale both the blue and green pools.", "id": "AutoscaledRolloutPolicy", - "properties": {}, + "properties": { + "waitForDrainDuration": { + "description": "Optional. Time to wait after cordoning the blue pool before draining the nodes. Defaults to 3 days. The value can be set between 0 and 7 days, inclusive.", + "format": "google-duration", + "type": "string" + } + }, "type": "object" }, "AvailableVersion": { diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index cfbd594d3d5..9aa2a5bb505 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -936,6 +936,26 @@ func (s AutoprovisioningNodePoolDefaults) MarshalJSON() ([]byte, error) { // AutoscaledRolloutPolicy: Autoscaled rollout policy utilizes the cluster // autoscaler during blue-green upgrade to scale both the blue and green pools. type AutoscaledRolloutPolicy struct { + // WaitForDrainDuration: Optional. Time to wait after cordoning the blue pool + // before draining the nodes. Defaults to 3 days. The value can be set between + // 0 and 7 days, inclusive. + WaitForDrainDuration string `json:"waitForDrainDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "WaitForDrainDuration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "WaitForDrainDuration") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutoscaledRolloutPolicy) MarshalJSON() ([]byte, error) { + type NoMethod AutoscaledRolloutPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AvailableVersion: Deprecated. diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 0a82f5de99c..3e1f63fbf73 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -716,6 +716,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -1196,6 +1201,97 @@ } } }, + "changeRequests": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/changeRequests/{changeRequestsId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataplex.projects.locations.changeRequests.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/changeRequests/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/changeRequests/{changeRequestsId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataplex.projects.locations.changeRequests.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/changeRequests/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/changeRequests/{changeRequestsId}:testIamPermissions", + "httpMethod": "POST", + "id": "dataplex.projects.locations.changeRequests.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/changeRequests/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "dataAttributeBindings": { "methods": { "create": { @@ -7132,6 +7228,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -7149,7 +7250,7 @@ } } }, - "revision": "20250919", + "revision": "20250924", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -8595,7 +8696,7 @@ "id": "GoogleCloudDataplexV1DataDocumentationResultTableResult", "properties": { "name": { - "description": "Output only. The service-qualified full resource name of the cloud resource. Ex: bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID", + "description": "Output only. The service-qualified full resource name of the cloud resource. Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID", "readOnly": true, "type": "string" }, @@ -10477,6 +10578,10 @@ "readOnly": true, "type": "string" }, + "enableMetastoreEncryption": { + "description": "Optional. Represent the state of CMEK opt-in for metastore.", + "type": "boolean" + }, "encryptionState": { "description": "Output only. The state of encryption of the databases.", "enum": [ @@ -14247,6 +14352,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets ListOperationsRequest.return_partial_success and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 2f6648fc70a..fca98e4a378 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -217,6 +217,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.AspectTypes = NewProjectsLocationsAspectTypesService(s) + rs.ChangeRequests = NewProjectsLocationsChangeRequestsService(s) rs.DataAttributeBindings = NewProjectsLocationsDataAttributeBindingsService(s) rs.DataProducts = NewProjectsLocationsDataProductsService(s) rs.DataScans = NewProjectsLocationsDataScansService(s) @@ -237,6 +238,8 @@ type ProjectsLocationsService struct { AspectTypes *ProjectsLocationsAspectTypesService + ChangeRequests *ProjectsLocationsChangeRequestsService + DataAttributeBindings *ProjectsLocationsDataAttributeBindingsService DataProducts *ProjectsLocationsDataProductsService @@ -271,6 +274,15 @@ type ProjectsLocationsAspectTypesService struct { s *Service } +func NewProjectsLocationsChangeRequestsService(s *Service) *ProjectsLocationsChangeRequestsService { + rs := &ProjectsLocationsChangeRequestsService{s: s} + return rs +} + +type ProjectsLocationsChangeRequestsService struct { + s *Service +} + func NewProjectsLocationsDataAttributeBindingsService(s *Service) *ProjectsLocationsDataAttributeBindingsService { rs := &ProjectsLocationsDataAttributeBindingsService{s: s} return rs @@ -2273,8 +2285,8 @@ func (s GoogleCloudDataplexV1DataDocumentationResultSchema) MarshalJSON() ([]byt type GoogleCloudDataplexV1DataDocumentationResultTableResult struct { // Name: Output only. The service-qualified full resource name of the cloud // resource. Ex: - // bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ - // ID + // //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABL + // E_ID Name string `json:"name,omitempty"` // Overview: Output only. Generated description of the table. Overview string `json:"overview,omitempty"` @@ -4622,6 +4634,9 @@ type GoogleCloudDataplexV1EncryptionConfig struct { // CreateTime: Output only. The time when the Encryption configuration was // created. CreateTime string `json:"createTime,omitempty"` + // EnableMetastoreEncryption: Optional. Represent the state of CMEK opt-in for + // metastore. + EnableMetastoreEncryption bool `json:"enableMetastoreEncryption,omitempty"` // EncryptionState: Output only. The state of encryption of the databases. // // Possible values: @@ -9121,6 +9136,11 @@ type GoogleLongrunningListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets ListOperationsRequest.return_partial_success and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -10595,6 +10615,19 @@ func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) * return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OrganizationsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -12290,6 +12323,355 @@ func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Do(opts ...googleap return ret, nil } +type ProjectsLocationsChangeRequestsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsChangeRequestsService) GetIamPolicy(resource string) *ProjectsLocationsChangeRequestsGetIamPolicyCall { + c := &ProjectsLocationsChangeRequestsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy.Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected.Requests for policies with any conditional +// role bindings must specify version 3. Policies with no conditional role +// bindings may specify any valid value or leave the field unset.The policy in +// the response might use the policy version that you specified, or it might +// use a lower policy version. For example, if you specify version 3, but the +// policy has no conditional role bindings, the response uses version 1.To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsChangeRequestsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsChangeRequestsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsChangeRequestsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsChangeRequestsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChangeRequestsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.changeRequests.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsChangeRequestsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsChangeRequestsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsChangeRequestsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsChangeRequestsSetIamPolicyCall { + c := &ProjectsLocationsChangeRequestsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsChangeRequestsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsChangeRequestsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsChangeRequestsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsChangeRequestsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsChangeRequestsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChangeRequestsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.changeRequests.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsChangeRequestsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsChangeRequestsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsChangeRequestsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsChangeRequestsTestIamPermissionsCall { + c := &ProjectsLocationsChangeRequestsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsChangeRequestsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsChangeRequestsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsChangeRequestsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsChangeRequestsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsChangeRequestsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChangeRequestsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.projects.locations.changeRequests.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsChangeRequestsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.projects.locations.changeRequests.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsDataAttributeBindingsCreateCall struct { s *Service parent string @@ -33721,6 +34103,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to true, operations that are reachable are returned as normal, and +// those that are unreachable are returned in the +// ListOperationsResponse.unreachable field.This can only be true when reading +// across collections e.g. when parent is set to +// "projects/example/locations/-".This field is not by default supported and +// will result in an UNIMPLEMENTED error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index c5813ca0904..9d361ab42ff 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -5012,7 +5012,7 @@ } } }, - "revision": "20250923", + "revision": "20250930", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -9619,10 +9619,6 @@ "description": "Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.", "type": "string" }, - "dataprocSuperUser": { - "description": "Optional. Whether the request is submitted by Dataproc super user. If true, IAM will check 'dataproc.clusters.repair' permission instead of 'dataproc.clusters.update' permission. This is to give Dataproc superuser the ability to repair clusters without granting the overly broad update permission.", - "type": "boolean" - }, "gracefulDecommissionTimeout": { "description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies the amount of time to wait for jobs finish before forcefully removing nodes. The default timeout is 0 for forceful decommissioning, and the maximum timeout period is 1 day. (see JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.", "format": "google-duration", @@ -12604,6 +12600,11 @@ "format": "int64", "type": "string" }, + "milliSlotSeconds": { + "description": "Optional. Slot usage in (milliSlot x seconds).", + "format": "int64", + "type": "string" + }, "shuffleStorageGbSeconds": { "description": "Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).", "format": "int64", @@ -12640,6 +12641,11 @@ "format": "int64", "type": "string" }, + "milliSlot": { + "description": "Optional. Milli (one-thousandth) Slot usage of the workload.", + "format": "int64", + "type": "string" + }, "shuffleStorageGb": { "description": "Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing))", "format": "int64", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index fe530c8c809..9225ead7a90 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -5858,12 +5858,6 @@ type RepairClusterRequest struct { // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` - // DataprocSuperUser: Optional. Whether the request is submitted by Dataproc - // super user. If true, IAM will check 'dataproc.clusters.repair' permission - // instead of 'dataproc.clusters.update' permission. This is to give Dataproc - // superuser the ability to repair clusters without granting the overly broad - // update permission. - DataprocSuperUser bool `json:"dataprocSuperUser,omitempty"` // GracefulDecommissionTimeout: Optional. Timeout for graceful YARN // decommissioning. Graceful decommissioning facilitates the removal of cluster // nodes without interrupting jobs in progress. The timeout specifies the @@ -9046,6 +9040,8 @@ type UsageMetrics struct { // seconds) (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliDcuSeconds int64 `json:"milliDcuSeconds,omitempty,string"` + // MilliSlotSeconds: Optional. Slot usage in (milliSlot x seconds). + MilliSlotSeconds int64 `json:"milliSlotSeconds,omitempty,string"` // ShuffleStorageGbSeconds: Optional. Shuffle storage usage in (GB x seconds) // (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). @@ -9087,6 +9083,8 @@ type UsageSnapshot struct { // (DCUs) charged at premium tier (see Dataproc Serverless pricing // (https://cloud.google.com/dataproc-serverless/pricing)). MilliDcuPremium int64 `json:"milliDcuPremium,omitempty,string"` + // MilliSlot: Optional. Milli (one-thousandth) Slot usage of the workload. + MilliSlot int64 `json:"milliSlot,omitempty,string"` // ShuffleStorageGb: Optional. Shuffle Storage in gigabytes (GB). (see Dataproc // Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)) ShuffleStorageGb int64 `json:"shuffleStorageGb,omitempty,string"` diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 80aa196d306..4038493d64c 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5163,6 +5163,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v3beta1/{+name}/operations", @@ -5420,6 +5425,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v3beta1/{+name}/operations", @@ -5436,7 +5446,7 @@ } } }, - "revision": "20250919", + "revision": "20250929", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -16169,6 +16179,207 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2AgentCoachingInstruction": { + "description": "Agent Coaching instructions that customer can configure.", + "id": "GoogleCloudDialogflowV2AgentCoachingInstruction", + "properties": { + "agentAction": { + "description": "Optional. The action that human agent should take. For example, \"apologize for the slow shipping\". If the users only want to use agent coaching for intent detection, agent_action can be empty", + "type": "string" + }, + "condition": { + "description": "Optional. The condition of the instruction. For example, \"the customer wants to cancel an order\". If the users want the instruction to be triggered unconditionally, the condition can be empty.", + "type": "string" + }, + "displayDetails": { + "description": "Optional. The detailed description of this instruction.", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name for the instruction.", + "type": "string" + }, + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult", + "description": "Output only. Duplication check for the AgentCoachingInstruction.", + "readOnly": true + }, + "systemAction": { + "description": "Optional. The action that system should take. For example, \"call GetOrderTime with order_number={order number provided by the customer}\". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult": { + "description": "Duplication check for the suggestion.", + "id": "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult", + "properties": { + "duplicateSuggestions": { + "description": "Output only. The duplicate suggestions.", + "items": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion": { + "description": "The duplicate suggestion details.", + "id": "GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion", + "properties": { + "answerRecord": { + "description": "Output only. The answer record id of the past duplicate suggestion.", + "readOnly": true, + "type": "string" + }, + "similarityScore": { + "description": "Output only. The similarity score of between the past and current suggestion.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "suggestionIndex": { + "description": "Output only. The index of the duplicate suggestion in the past suggestion list.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestion": { + "description": "Suggestion for coaching agents.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestion", + "properties": { + "agentActionSuggestions": { + "description": "Optional. Suggested actions for the agent to take.", + "items": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion" + }, + "type": "array" + }, + "applicableInstructions": { + "description": "Optional. Instructions applicable based on the current context.", + "items": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingInstruction" + }, + "type": "array" + }, + "sampleResponses": { + "description": "Optional. Sample response for the Agent.", + "items": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion": { + "description": "Actions suggested for the agent. This is based on applicable instructions.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion", + "properties": { + "agentAction": { + "description": "Optional. The suggested action for the agent.", + "type": "string" + }, + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult", + "description": "Output only. Duplicate check result for the agent action suggestion.", + "readOnly": true + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionSources", + "description": "Output only. Sources for the agent action suggestion.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult": { + "description": "Duplication check for the suggestion.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult", + "properties": { + "duplicateSuggestions": { + "description": "Output only. The duplicate suggestions.", + "items": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion": { + "description": "The duplicate suggestion details. Keeping answer_record and sources together as they are identifiers for duplicate suggestions.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion", + "properties": { + "answerRecord": { + "description": "Output only. The answer record id of the past duplicate suggestion.", + "readOnly": true, + "type": "string" + }, + "similarityScore": { + "description": "Output only. The similarity score of between the past and current suggestion.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionSources", + "description": "Output only. Sources for the suggestion.", + "readOnly": true + }, + "suggestionIndex": { + "description": "Output only. The index of the duplicate suggestion in the past suggestion list.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse": { + "description": "Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse", + "properties": { + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult", + "description": "Output only. Duplicate check result for the sample response.", + "readOnly": true + }, + "responseText": { + "description": "Optional. Sample response for Agent in text.", + "type": "string" + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestionSources", + "description": "Output only. Sources for the Sample Response.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentCoachingSuggestionSources": { + "description": "Sources for the suggestion.", + "id": "GoogleCloudDialogflowV2AgentCoachingSuggestionSources", + "properties": { + "instructionIndexes": { + "description": "Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.", + "items": { + "format": "int32", + "type": "integer" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2AnnotatedMessagePart": { "description": "Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.", "id": "GoogleCloudDialogflowV2AnnotatedMessagePart", @@ -16852,6 +17063,10 @@ "description": "Suggestion generated using a Generator.", "id": "GoogleCloudDialogflowV2GeneratorSuggestion", "properties": { + "agentCoachingSuggestion": { + "$ref": "GoogleCloudDialogflowV2AgentCoachingSuggestion", + "description": "Optional. Suggestion to coach the agent." + }, "freeFormSuggestion": { "$ref": "GoogleCloudDialogflowV2FreeFormSuggestion", "description": "Optional. Free form suggestion." @@ -18632,6 +18847,10 @@ "description": "Optional. The name of the tool's action associated with this call.", "type": "string" }, + "answerRecord": { + "description": "Optional. The answer record associated with this tool call.", + "type": "string" + }, "createTime": { "description": "Output only. Create time of the tool call.", "format": "google-datetime", @@ -18646,9 +18865,32 @@ "description": "Optional. The action's input parameters.", "type": "object" }, + "state": { + "description": "Output only. State of the tool call.", + "enum": [ + "STATE_UNSPECIFIED", + "TRIGGERED", + "NEEDS_CONFIRMATION" + ], + "enumDescriptions": [ + "Default value.", + "The tool call has been triggered.", + "The tool call requires confirmation from a human." + ], + "readOnly": true, + "type": "string" + }, "tool": { "description": "Optional. The tool associated with this call. Format: `projects//locations//tools/`.", "type": "string" + }, + "toolDisplayDetails": { + "description": "Optional. A human readable description of the tool.", + "type": "string" + }, + "toolDisplayName": { + "description": "Optional. A human readable short name of the tool, to be shown on the UI.", + "type": "string" } }, "type": "object" @@ -18661,6 +18903,10 @@ "description": "Optional. The name of the tool's action associated with this call.", "type": "string" }, + "answerRecord": { + "description": "Optional. The answer record associated with this tool call result.", + "type": "string" + }, "content": { "description": "Only populated if the response content is utf-8 encoded.", "type": "string" @@ -18790,6 +19036,207 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2beta1AgentCoachingInstruction": { + "description": "Agent Coaching instructions that customer can configure.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingInstruction", + "properties": { + "agentAction": { + "description": "Optional. The action that human agent should take. For example, \"apologize for the slow shipping\". If the users only want to use agent coaching for intent detection, agent_action can be empty", + "type": "string" + }, + "condition": { + "description": "Optional. The condition of the instruction. For example, \"the customer wants to cancel an order\". If the users want the instruction to be triggered unconditionally, the condition can be empty.", + "type": "string" + }, + "displayDetails": { + "description": "Optional. The detailed description of this instruction.", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name for the instruction.", + "type": "string" + }, + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult", + "description": "Output only. Duplication check for the AgentCoachingInstruction.", + "readOnly": true + }, + "systemAction": { + "description": "Optional. The action that system should take. For example, \"call GetOrderTime with order_number={order number provided by the customer}\". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult": { + "description": "Duplication check for the suggestion.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult", + "properties": { + "duplicateSuggestions": { + "description": "Output only. The duplicate suggestions.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion": { + "description": "The duplicate suggestion details.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion", + "properties": { + "answerRecord": { + "description": "Output only. The answer record id of the past duplicate suggestion.", + "readOnly": true, + "type": "string" + }, + "similarityScore": { + "description": "Output only. The similarity score of between the past and current suggestion.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "suggestionIndex": { + "description": "Output only. The index of the duplicate suggestion in the past suggestion list.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestion": { + "description": "Suggestion for coaching agents.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestion", + "properties": { + "agentActionSuggestions": { + "description": "Optional. Suggested actions for the agent to take.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion" + }, + "type": "array" + }, + "applicableInstructions": { + "description": "Optional. Instructions applicable based on the current context.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingInstruction" + }, + "type": "array" + }, + "sampleResponses": { + "description": "Optional. Sample response for the Agent.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion": { + "description": "Actions suggested for the agent. This is based on applicable instructions.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion", + "properties": { + "agentAction": { + "description": "Optional. The suggested action for the agent.", + "type": "string" + }, + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult", + "description": "Output only. Duplicate check result for the agent action suggestion.", + "readOnly": true + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources", + "description": "Output only. Sources for the agent action suggestion.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult": { + "description": "Duplication check for the suggestion.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult", + "properties": { + "duplicateSuggestions": { + "description": "Output only. The duplicate suggestions.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion": { + "description": "The duplicate suggestion details. Keeping answer_record and sources together as they are identifiers for duplicate suggestions.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion", + "properties": { + "answerRecord": { + "description": "Output only. The answer record id of the past duplicate suggestion.", + "readOnly": true, + "type": "string" + }, + "similarityScore": { + "description": "Output only. The similarity score of between the past and current suggestion.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources", + "description": "Output only. Sources for the suggestion.", + "readOnly": true + }, + "suggestionIndex": { + "description": "Output only. The index of the duplicate suggestion in the past suggestion list.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse": { + "description": "Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse", + "properties": { + "duplicateCheckResult": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult", + "description": "Output only. Duplicate check result for the sample response.", + "readOnly": true + }, + "responseText": { + "description": "Optional. Sample response for Agent in text.", + "type": "string" + }, + "sources": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources", + "description": "Output only. Sources for the Sample Response.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources": { + "description": "Sources for the suggestion.", + "id": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources", + "properties": { + "instructionIndexes": { + "description": "Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.", + "items": { + "format": "int32", + "type": "integer" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2beta1AnnotatedMessagePart": { "description": "Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.", "id": "GoogleCloudDialogflowV2beta1AnnotatedMessagePart", @@ -19249,6 +19696,10 @@ "description": "Suggestion generated using a Generator.", "id": "GoogleCloudDialogflowV2beta1GeneratorSuggestion", "properties": { + "agentCoachingSuggestion": { + "$ref": "GoogleCloudDialogflowV2beta1AgentCoachingSuggestion", + "description": "Optional. Suggestion to coach the agent." + }, "freeFormSuggestion": { "$ref": "GoogleCloudDialogflowV2beta1FreeFormSuggestion", "description": "Optional. Free form suggestion." @@ -21555,6 +22006,10 @@ "description": "Optional. The name of the tool's action associated with this call.", "type": "string" }, + "answerRecord": { + "description": "Optional. The answer record associated with this tool call.", + "type": "string" + }, "createTime": { "description": "Output only. Create time of the tool call.", "format": "google-datetime", @@ -21569,9 +22024,32 @@ "description": "Optional. The action's input parameters.", "type": "object" }, + "state": { + "description": "Output only. State of the tool call", + "enum": [ + "STATE_UNSPECIFIED", + "TRIGGERED", + "NEEDS_CONFIRMATION" + ], + "enumDescriptions": [ + "Default value.", + "The tool call has been triggered.", + "The tool call requires confirmation from a human." + ], + "readOnly": true, + "type": "string" + }, "tool": { "description": "Optional. The tool associated with this call. Format: `projects//locations//tools/`.", "type": "string" + }, + "toolDisplayDetails": { + "description": "Optional. A human readable description of the tool.", + "type": "string" + }, + "toolDisplayName": { + "description": "Optional. A human readable short name of the tool, to be shown on the UI.", + "type": "string" } }, "type": "object" @@ -21584,6 +22062,10 @@ "description": "Optional. The name of the tool's action associated with this call.", "type": "string" }, + "answerRecord": { + "description": "Optional. The answer record associated with this tool call result.", + "type": "string" + }, "content": { "description": "Only populated if the response content is utf-8 encoded.", "type": "string" @@ -21853,6 +22335,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index c16ad32f0a4..fe34ae25777 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -15368,6 +15368,293 @@ func (s GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2AgentCoachingInstruction: Agent Coaching instructions +// that customer can configure. +type GoogleCloudDialogflowV2AgentCoachingInstruction struct { + // AgentAction: Optional. The action that human agent should take. For example, + // "apologize for the slow shipping". If the users only want to use agent + // coaching for intent detection, agent_action can be empty + AgentAction string `json:"agentAction,omitempty"` + // Condition: Optional. The condition of the instruction. For example, "the + // customer wants to cancel an order". If the users want the instruction to be + // triggered unconditionally, the condition can be empty. + Condition string `json:"condition,omitempty"` + // DisplayDetails: Optional. The detailed description of this instruction. + DisplayDetails string `json:"displayDetails,omitempty"` + // DisplayName: Optional. Display name for the instruction. + DisplayName string `json:"displayName,omitempty"` + // DuplicateCheckResult: Output only. Duplication check for the + // AgentCoachingInstruction. + DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // SystemAction: Optional. The action that system should take. For example, + // "call GetOrderTime with order_number={order number provided by the + // customer}". If the users don't have plugins or don't want to trigger + // plugins, the system_action can be empty + SystemAction string `json:"systemAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingInstruction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult: +// Duplication check for the suggestion. +type GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult struct { + // DuplicateSuggestions: Output only. The duplicate suggestions. + DuplicateSuggestions []*GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateSuggestions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateS +// uggestion: The duplicate suggestion details. +type GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion struct { + // AnswerRecord: Output only. The answer record id of the past duplicate + // suggestion. + AnswerRecord string `json:"answerRecord,omitempty"` + // SimilarityScore: Output only. The similarity score of between the past and + // current suggestion. + SimilarityScore float64 `json:"similarityScore,omitempty"` + // SuggestionIndex: Output only. The index of the duplicate suggestion in the + // past suggestion list. + SuggestionIndex int64 `json:"suggestionIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRecord") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AnswerRecord") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestion: Suggestion for coaching +// agents. +type GoogleCloudDialogflowV2AgentCoachingSuggestion struct { + // AgentActionSuggestions: Optional. Suggested actions for the agent to take. + AgentActionSuggestions []*GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"` + // ApplicableInstructions: Optional. Instructions applicable based on the + // current context. + ApplicableInstructions []*GoogleCloudDialogflowV2AgentCoachingInstruction `json:"applicableInstructions,omitempty"` + // SampleResponses: Optional. Sample response for the Agent. + SampleResponses []*GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentActionSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentActionSuggestions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion: Actions +// suggested for the agent. This is based on applicable instructions. +type GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion struct { + // AgentAction: Optional. The suggested action for the agent. + AgentAction string `json:"agentAction,omitempty"` + // DuplicateCheckResult: Output only. Duplicate check result for the agent + // action suggestion. + DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // Sources: Output only. Sources for the agent action suggestion. + Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult: +// Duplication check for the suggestion. +type GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult struct { + // DuplicateSuggestions: Output only. The duplicate suggestions. + DuplicateSuggestions []*GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateSuggestions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSu +// ggestion: The duplicate suggestion details. Keeping answer_record and +// sources together as they are identifiers for duplicate suggestions. +type GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion struct { + // AnswerRecord: Output only. The answer record id of the past duplicate + // suggestion. + AnswerRecord string `json:"answerRecord,omitempty"` + // SimilarityScore: Output only. The similarity score of between the past and + // current suggestion. + SimilarityScore float64 `json:"similarityScore,omitempty"` + // Sources: Output only. Sources for the suggestion. + Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"` + // SuggestionIndex: Output only. The index of the duplicate suggestion in the + // past suggestion list. + SuggestionIndex int64 `json:"suggestionIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRecord") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AnswerRecord") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse: Sample +// response that the agent can use. This could be based on applicable +// instructions and ingested data from other systems. +type GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse struct { + // DuplicateCheckResult: Output only. Duplicate check result for the sample + // response. + DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // ResponseText: Optional. Sample response for Agent in text. + ResponseText string `json:"responseText,omitempty"` + // Sources: Output only. Sources for the Sample Response. + Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateCheckResult") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateCheckResult") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2AgentCoachingSuggestionSources: Sources for the +// suggestion. +type GoogleCloudDialogflowV2AgentCoachingSuggestionSources struct { + // InstructionIndexes: Output only. Source instruction indexes for the + // suggestion. This is the index of the applicable_instructions field. + InstructionIndexes []int64 `json:"instructionIndexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstructionIndexes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstructionIndexes") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2AgentCoachingSuggestionSources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentCoachingSuggestionSources + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message // possibly annotated with an entity. The part can be an entity or purely a // part of the message between two entities or message start/end. @@ -16308,6 +16595,8 @@ func (s GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAns // GoogleCloudDialogflowV2GeneratorSuggestion: Suggestion generated using a // Generator. type GoogleCloudDialogflowV2GeneratorSuggestion struct { + // AgentCoachingSuggestion: Optional. Suggestion to coach the agent. + AgentCoachingSuggestion *GoogleCloudDialogflowV2AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"` // FreeFormSuggestion: Optional. Free form suggestion. FreeFormSuggestion *GoogleCloudDialogflowV2FreeFormSuggestion `json:"freeFormSuggestion,omitempty"` // SummarySuggestion: Optional. Suggested summary. @@ -16315,15 +16604,15 @@ type GoogleCloudDialogflowV2GeneratorSuggestion struct { // ToolCallInfo: Optional. List of request and response for tool calls // executed. ToolCallInfo []*GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo `json:"toolCallInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "FreeFormSuggestion") to + // ForceSendFields is a list of field names (e.g. "AgentCoachingSuggestion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FreeFormSuggestion") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AgentCoachingSuggestion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -18701,13 +18990,27 @@ func (s GoogleCloudDialogflowV2SummarySuggestionSummarySection) MarshalJSON() ([ type GoogleCloudDialogflowV2ToolCall struct { // Action: Optional. The name of the tool's action associated with this call. Action string `json:"action,omitempty"` + // AnswerRecord: Optional. The answer record associated with this tool call. + AnswerRecord string `json:"answerRecord,omitempty"` // CreateTime: Output only. Create time of the tool call. CreateTime string `json:"createTime,omitempty"` // InputParameters: Optional. The action's input parameters. InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // State: Output only. State of the tool call. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "TRIGGERED" - The tool call has been triggered. + // "NEEDS_CONFIRMATION" - The tool call requires confirmation from a human. + State string `json:"state,omitempty"` // Tool: Optional. The tool associated with this call. Format: // `projects//locations//tools/`. Tool string `json:"tool,omitempty"` + // ToolDisplayDetails: Optional. A human readable description of the tool. + ToolDisplayDetails string `json:"toolDisplayDetails,omitempty"` + // ToolDisplayName: Optional. A human readable short name of the tool, to be + // shown on the UI. + ToolDisplayName string `json:"toolDisplayName,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -18731,6 +19034,9 @@ func (s GoogleCloudDialogflowV2ToolCall) MarshalJSON() ([]byte, error) { type GoogleCloudDialogflowV2ToolCallResult struct { // Action: Optional. The name of the tool's action associated with this call. Action string `json:"action,omitempty"` + // AnswerRecord: Optional. The answer record associated with this tool call + // result. + AnswerRecord string `json:"answerRecord,omitempty"` // Content: Only populated if the response content is utf-8 encoded. Content string `json:"content,omitempty"` // CreateTime: Output only. Create time of the tool call result. @@ -18914,6 +19220,293 @@ func (s GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2beta1AgentCoachingInstruction: Agent Coaching +// instructions that customer can configure. +type GoogleCloudDialogflowV2beta1AgentCoachingInstruction struct { + // AgentAction: Optional. The action that human agent should take. For example, + // "apologize for the slow shipping". If the users only want to use agent + // coaching for intent detection, agent_action can be empty + AgentAction string `json:"agentAction,omitempty"` + // Condition: Optional. The condition of the instruction. For example, "the + // customer wants to cancel an order". If the users want the instruction to be + // triggered unconditionally, the condition can be empty. + Condition string `json:"condition,omitempty"` + // DisplayDetails: Optional. The detailed description of this instruction. + DisplayDetails string `json:"displayDetails,omitempty"` + // DisplayName: Optional. Display name for the instruction. + DisplayName string `json:"displayName,omitempty"` + // DuplicateCheckResult: Output only. Duplication check for the + // AgentCoachingInstruction. + DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // SystemAction: Optional. The action that system should take. For example, + // "call GetOrderTime with order_number={order number provided by the + // customer}". If the users don't have plugins or don't want to trigger + // plugins, the system_action can be empty + SystemAction string `json:"systemAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingInstruction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult: +// Duplication check for the suggestion. +type GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult struct { + // DuplicateSuggestions: Output only. The duplicate suggestions. + DuplicateSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateSuggestions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDupli +// cateSuggestion: The duplicate suggestion details. +type GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion struct { + // AnswerRecord: Output only. The answer record id of the past duplicate + // suggestion. + AnswerRecord string `json:"answerRecord,omitempty"` + // SimilarityScore: Output only. The similarity score of between the past and + // current suggestion. + SimilarityScore float64 `json:"similarityScore,omitempty"` + // SuggestionIndex: Output only. The index of the duplicate suggestion in the + // past suggestion list. + SuggestionIndex int64 `json:"suggestionIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRecord") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AnswerRecord") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestion: Suggestion for coaching +// agents. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestion struct { + // AgentActionSuggestions: Optional. Suggested actions for the agent to take. + AgentActionSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"` + // ApplicableInstructions: Optional. Instructions applicable based on the + // current context. + ApplicableInstructions []*GoogleCloudDialogflowV2beta1AgentCoachingInstruction `json:"applicableInstructions,omitempty"` + // SampleResponses: Optional. Sample response for the Agent. + SampleResponses []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentActionSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentActionSuggestions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion: +// Actions suggested for the agent. This is based on applicable instructions. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion struct { + // AgentAction: Optional. The suggested action for the agent. + AgentAction string `json:"agentAction,omitempty"` + // DuplicateCheckResult: Output only. Duplicate check result for the agent + // action suggestion. + DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // Sources: Output only. Sources for the agent action suggestion. + Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult: +// Duplication check for the suggestion. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult struct { + // DuplicateSuggestions: Output only. The duplicate suggestions. + DuplicateSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateSuggestions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplic +// ateSuggestion: The duplicate suggestion details. Keeping answer_record and +// sources together as they are identifiers for duplicate suggestions. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion struct { + // AnswerRecord: Output only. The answer record id of the past duplicate + // suggestion. + AnswerRecord string `json:"answerRecord,omitempty"` + // SimilarityScore: Output only. The similarity score of between the past and + // current suggestion. + SimilarityScore float64 `json:"similarityScore,omitempty"` + // Sources: Output only. Sources for the suggestion. + Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"` + // SuggestionIndex: Output only. The index of the duplicate suggestion in the + // past suggestion list. + SuggestionIndex int64 `json:"suggestionIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRecord") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AnswerRecord") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse: Sample +// response that the agent can use. This could be based on applicable +// instructions and ingested data from other systems. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse struct { + // DuplicateCheckResult: Output only. Duplicate check result for the sample + // response. + DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"` + // ResponseText: Optional. Sample response for Agent in text. + ResponseText string `json:"responseText,omitempty"` + // Sources: Output only. Sources for the Sample Response. + Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicateCheckResult") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DuplicateCheckResult") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources: Sources for the +// suggestion. +type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources struct { + // InstructionIndexes: Output only. Source instruction indexes for the + // suggestion. This is the index of the applicable_instructions field. + InstructionIndexes []int64 `json:"instructionIndexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstructionIndexes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstructionIndexes") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part of a // message possibly annotated with an entity. The part can be an entity or // purely a part of the message between two entities or message start/end. @@ -19606,6 +20199,8 @@ func (s GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggesti // GoogleCloudDialogflowV2beta1GeneratorSuggestion: Suggestion generated using // a Generator. type GoogleCloudDialogflowV2beta1GeneratorSuggestion struct { + // AgentCoachingSuggestion: Optional. Suggestion to coach the agent. + AgentCoachingSuggestion *GoogleCloudDialogflowV2beta1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"` // FreeFormSuggestion: Optional. Free form suggestion. FreeFormSuggestion *GoogleCloudDialogflowV2beta1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"` // SummarySuggestion: Optional. Suggested summary. @@ -19613,15 +20208,15 @@ type GoogleCloudDialogflowV2beta1GeneratorSuggestion struct { // ToolCallInfo: Optional. List of request and response for tool calls // executed. ToolCallInfo []*GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo `json:"toolCallInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "FreeFormSuggestion") to + // ForceSendFields is a list of field names (e.g. "AgentCoachingSuggestion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FreeFormSuggestion") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AgentCoachingSuggestion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -22741,13 +23336,27 @@ func (s GoogleCloudDialogflowV2beta1TelephonyDtmfEvents) MarshalJSON() ([]byte, type GoogleCloudDialogflowV2beta1ToolCall struct { // Action: Optional. The name of the tool's action associated with this call. Action string `json:"action,omitempty"` + // AnswerRecord: Optional. The answer record associated with this tool call. + AnswerRecord string `json:"answerRecord,omitempty"` // CreateTime: Output only. Create time of the tool call. CreateTime string `json:"createTime,omitempty"` // InputParameters: Optional. The action's input parameters. InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // State: Output only. State of the tool call + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "TRIGGERED" - The tool call has been triggered. + // "NEEDS_CONFIRMATION" - The tool call requires confirmation from a human. + State string `json:"state,omitempty"` // Tool: Optional. The tool associated with this call. Format: // `projects//locations//tools/`. Tool string `json:"tool,omitempty"` + // ToolDisplayDetails: Optional. A human readable description of the tool. + ToolDisplayDetails string `json:"toolDisplayDetails,omitempty"` + // ToolDisplayName: Optional. A human readable short name of the tool, to be + // shown on the UI. + ToolDisplayName string `json:"toolDisplayName,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -22771,6 +23380,9 @@ func (s GoogleCloudDialogflowV2beta1ToolCall) MarshalJSON() ([]byte, error) { type GoogleCloudDialogflowV2beta1ToolCallResult struct { // Action: Optional. The name of the tool's action associated with this call. Action string `json:"action,omitempty"` + // AnswerRecord: Optional. The answer record associated with this tool call + // result. + AnswerRecord string `json:"answerRecord,omitempty"` // Content: Only populated if the response content is utf-8 encoded. Content string `json:"content,omitempty"` // CreateTime: Output only. Create time of the tool call result. @@ -23105,6 +23717,11 @@ type GoogleLongrunningListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -41578,6 +42195,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -42525,6 +43155,19 @@ func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperat return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/displayvideo/v4/displayvideo-api.json b/displayvideo/v4/displayvideo-api.json index 31db826fac6..14f2543fa0b 100644 --- a/displayvideo/v4/displayvideo-api.json +++ b/displayvideo/v4/displayvideo-api.json @@ -9302,7 +9302,7 @@ } } }, - "revision": "20250925", + "revision": "20250930", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -16375,7 +16375,8 @@ "YOUTUBE_USERS", "THIRD_PARTY", "COMMERCE", - "LINEAR" + "LINEAR", + "AGENCY" ], "enumDeprecated": [ false, @@ -16388,6 +16389,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -16401,7 +16403,8 @@ "Audience was created based on past interactions with videos, YouTube ads, or YouTube channel.", "Audience has been licensed for use from a third party.", "Audience provided by commerce partners for a fee.", - "Audience for Linear TV content." + "Audience for Linear TV content.", + "Audience provided by an agency." ], "readOnly": true, "type": "string" diff --git a/displayvideo/v4/displayvideo-gen.go b/displayvideo/v4/displayvideo-gen.go index 3e81f88010c..e13bca382b6 100644 --- a/displayvideo/v4/displayvideo-gen.go +++ b/displayvideo/v4/displayvideo-gen.go @@ -8695,6 +8695,7 @@ type FirstPartyAndPartnerAudience struct { // "THIRD_PARTY" - Audience has been licensed for use from a third party. // "COMMERCE" - Audience provided by commerce partners for a fee. // "LINEAR" - Audience for Linear TV content. + // "AGENCY" - Audience provided by an agency. AudienceType string `json:"audienceType,omitempty"` // ContactInfoList: Input only. A list of contact information to define the // initial audience members. Only applicable to audience_type diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index e6d0225a808..99583e6a4ca 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -320,6 +320,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}", @@ -1048,7 +1053,7 @@ } } }, - "revision": "20250922", + "revision": "20250929", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": { @@ -1067,10 +1072,16 @@ "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule": { "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule", "properties": { + "childAlignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule" + }, "description": { "description": "Description of the validation rule. This has no use but for documentation", "type": "string" }, + "entityAlignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule" + }, "fieldOccurrences": { "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences" }, @@ -1087,6 +1098,53 @@ }, "type": "object" }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule": { + "description": "A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by comparing x-coordinates of bounding box centers.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "properties": { + "alignmentType": { + "enum": [ + "ALIGNMENT_TYPE_UNSPECIFIED", + "ALIGNMENT_TYPE_HORIZONTAL", + "ALIGNMENT_TYPE_VERTICAL" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "tolerance": { + "description": "The tolerance to use when comparing coordinates.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule": { + "description": "A rule that aligns specified child fields with a parent field.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule", + "properties": { + "alignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "description": "The alignment rule to apply to the child fields." + }, + "childFields": { + "description": "The child fields to be aligned within the parent field.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "type": "array" + }, + "parentField": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField", + "description": "The full path of the parent field." + } + }, + "type": "object" + }, "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant": { "description": "The constant value used in the validation rules.", "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant", @@ -1098,6 +1156,24 @@ }, "type": "object" }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule": { + "description": "A rule that aligns specified fields with each other.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule", + "properties": { + "alignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "description": "The alignment rule to apply to the fields." + }, + "fields": { + "description": "The fields to be aligned.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "type": "array" + } + }, + "type": "object" + }, "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField": { "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField", "properties": { @@ -6235,6 +6311,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 9be99653aea..b1ee57ba739 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -295,23 +295,25 @@ func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInput) MarshalJSON() ([ } type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule struct { + ChildAlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule `json:"childAlignmentRule,omitempty"` // Description: Description of the validation rule. This has no use but for // documentation - Description string `json:"description,omitempty"` - FieldOccurrences *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences `json:"fieldOccurrences,omitempty"` - FieldRegex *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex `json:"fieldRegex,omitempty"` - FormValidation *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation `json:"formValidation,omitempty"` + Description string `json:"description,omitempty"` + EntityAlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule `json:"entityAlignmentRule,omitempty"` + FieldOccurrences *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences `json:"fieldOccurrences,omitempty"` + FieldRegex *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex `json:"fieldRegex,omitempty"` + FormValidation *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation `json:"formValidation,omitempty"` // Name: Name of the validation rule. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "ChildAlignmentRule") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ChildAlignmentRule") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -321,6 +323,78 @@ func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignment +// Rule: A rule for checking field alignment. Horizontal alignment checks if +// fields are on the same row by comparing y-coordinates of bounding box +// centers, while vertical alignment checks if fields are on the same column by +// comparing x-coordinates of bounding box centers. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule struct { + // Possible values: + // "ALIGNMENT_TYPE_UNSPECIFIED" + // "ALIGNMENT_TYPE_HORIZONTAL" + // "ALIGNMENT_TYPE_VERTICAL" + AlignmentType string `json:"alignmentType,omitempty"` + // Tolerance: The tolerance to use when comparing coordinates. + Tolerance float64 `json:"tolerance,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule + var s1 struct { + Tolerance gensupport.JSONFloat64 `json:"tolerance"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Tolerance = float64(s1.Tolerance) + return nil +} + +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlig +// nmentRule: A rule that aligns specified child fields with a parent field. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule struct { + // AlignmentRule: The alignment rule to apply to the child fields. + AlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule `json:"alignmentRule,omitempty"` + // ChildFields: The child fields to be aligned within the parent field. + ChildFields []*CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"childFields,omitempty"` + // ParentField: The full path of the parent field. + ParentField *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"parentField,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentRule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentRule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant: // // The constant value used in the validation rules. @@ -358,6 +432,31 @@ func (s *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleCon return nil } +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAli +// gnmentRule: A rule that aligns specified fields with each other. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule struct { + // AlignmentRule: The alignment rule to apply to the fields. + AlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule `json:"alignmentRule,omitempty"` + // Fields: The fields to be aligned. + Fields []*CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"fields,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentRule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentRule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField struct { // DefaultValue: Default value to use if the field is not present. If the field // is missing and the default value is not set, the validation run as if the @@ -7117,6 +7216,11 @@ type GoogleLongrunningListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -8333,6 +8437,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index c8526676bb9..a23da74c8d1 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -291,6 +291,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta3/{+name}", @@ -1290,7 +1295,7 @@ } } }, - "revision": "20250922", + "revision": "20250929", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": { @@ -1309,10 +1314,16 @@ "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule": { "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule", "properties": { + "childAlignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule" + }, "description": { "description": "Description of the validation rule. This has no use but for documentation", "type": "string" }, + "entityAlignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule" + }, "fieldOccurrences": { "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences" }, @@ -1329,6 +1340,53 @@ }, "type": "object" }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule": { + "description": "A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by comparing x-coordinates of bounding box centers.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "properties": { + "alignmentType": { + "enum": [ + "ALIGNMENT_TYPE_UNSPECIFIED", + "ALIGNMENT_TYPE_HORIZONTAL", + "ALIGNMENT_TYPE_VERTICAL" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "tolerance": { + "description": "The tolerance to use when comparing coordinates.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule": { + "description": "A rule that aligns specified child fields with a parent field.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule", + "properties": { + "alignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "description": "The alignment rule to apply to the child fields." + }, + "childFields": { + "description": "The child fields to be aligned within the parent field.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "type": "array" + }, + "parentField": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField", + "description": "The full path of the parent field." + } + }, + "type": "object" + }, "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant": { "description": "The constant value used in the validation rules.", "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant", @@ -1340,6 +1398,24 @@ }, "type": "object" }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule": { + "description": "A rule that aligns specified fields with each other.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule", + "properties": { + "alignmentRule": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule", + "description": "The alignment rule to apply to the fields." + }, + "fields": { + "description": "The fields to be aligned.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "type": "array" + } + }, + "type": "object" + }, "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField": { "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField", "properties": { @@ -7035,6 +7111,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 7b0e77689b4..0051d6fbf81 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -283,23 +283,25 @@ func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInput) MarshalJSON() ([ } type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule struct { + ChildAlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule `json:"childAlignmentRule,omitempty"` // Description: Description of the validation rule. This has no use but for // documentation - Description string `json:"description,omitempty"` - FieldOccurrences *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences `json:"fieldOccurrences,omitempty"` - FieldRegex *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex `json:"fieldRegex,omitempty"` - FormValidation *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation `json:"formValidation,omitempty"` + Description string `json:"description,omitempty"` + EntityAlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule `json:"entityAlignmentRule,omitempty"` + FieldOccurrences *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences `json:"fieldOccurrences,omitempty"` + FieldRegex *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex `json:"fieldRegex,omitempty"` + FormValidation *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation `json:"formValidation,omitempty"` // Name: Name of the validation rule. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "ChildAlignmentRule") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ChildAlignmentRule") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -309,6 +311,78 @@ func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignment +// Rule: A rule for checking field alignment. Horizontal alignment checks if +// fields are on the same row by comparing y-coordinates of bounding box +// centers, while vertical alignment checks if fields are on the same column by +// comparing x-coordinates of bounding box centers. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule struct { + // Possible values: + // "ALIGNMENT_TYPE_UNSPECIFIED" + // "ALIGNMENT_TYPE_HORIZONTAL" + // "ALIGNMENT_TYPE_VERTICAL" + AlignmentType string `json:"alignmentType,omitempty"` + // Tolerance: The tolerance to use when comparing coordinates. + Tolerance float64 `json:"tolerance,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule + var s1 struct { + Tolerance gensupport.JSONFloat64 `json:"tolerance"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Tolerance = float64(s1.Tolerance) + return nil +} + +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlig +// nmentRule: A rule that aligns specified child fields with a parent field. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule struct { + // AlignmentRule: The alignment rule to apply to the child fields. + AlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule `json:"alignmentRule,omitempty"` + // ChildFields: The child fields to be aligned within the parent field. + ChildFields []*CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"childFields,omitempty"` + // ParentField: The full path of the parent field. + ParentField *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"parentField,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentRule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentRule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant: // // The constant value used in the validation rules. @@ -346,6 +420,31 @@ func (s *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleCon return nil } +// CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAli +// gnmentRule: A rule that aligns specified fields with each other. +type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule struct { + // AlignmentRule: The alignment rule to apply to the fields. + AlignmentRule *CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule `json:"alignmentRule,omitempty"` + // Fields: The fields to be aligned. + Fields []*CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField `json:"fields,omitempty"` + // ForceSendFields is a list of field names (e.g. "AlignmentRule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AlignmentRule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField struct { // DefaultValue: Default value to use if the field is not present. If the field // is missing and the default value is not set, the validation run as if the @@ -7889,6 +7988,11 @@ type GoogleLongrunningListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -9004,6 +9108,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/firebasehosting/v1/firebasehosting-api.json b/firebasehosting/v1/firebasehosting-api.json index 976c16f5bc1..3b5fc6efd4c 100644 --- a/firebasehosting/v1/firebasehosting-api.json +++ b/firebasehosting/v1/firebasehosting-api.json @@ -188,6 +188,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}", @@ -269,7 +274,7 @@ } } }, - "revision": "20241203", + "revision": "20250929", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -541,6 +546,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/firebasehosting/v1/firebasehosting-gen.go b/firebasehosting/v1/firebasehosting-gen.go index f8477c1e62c..eb2804bf234 100644 --- a/firebasehosting/v1/firebasehosting-gen.go +++ b/firebasehosting/v1/firebasehosting-gen.go @@ -557,6 +557,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -965,6 +970,19 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/firebasehosting/v1beta1/firebasehosting-api.json b/firebasehosting/v1beta1/firebasehosting-api.json index 40e430d02e6..c3cb6469ebc 100644 --- a/firebasehosting/v1beta1/firebasehosting-api.json +++ b/firebasehosting/v1beta1/firebasehosting-api.json @@ -946,6 +946,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/{+name}/operations", @@ -2422,7 +2427,7 @@ } } }, - "revision": "20240319", + "revision": "20250929", "rootUrl": "https://firebasehosting.googleapis.com/", "schemas": { "ActingUser": { @@ -3292,6 +3297,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index 022aff30f72..935e6419361 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -1413,6 +1413,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4969,6 +4974,19 @@ func (c *ProjectsSitesCustomDomainsOperationsListCall) PageToken(pageToken strin return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsSitesCustomDomainsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsSitesCustomDomainsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/firebaseml/v1/firebaseml-api.json b/firebaseml/v1/firebaseml-api.json index 9f8e1375449..3de20a64cc3 100644 --- a/firebaseml/v1/firebaseml-api.json +++ b/firebaseml/v1/firebaseml-api.json @@ -191,6 +191,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}", @@ -204,7 +209,7 @@ } } }, - "revision": "20241117", + "revision": "20250929", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -233,6 +238,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/firebaseml/v1/firebaseml-gen.go b/firebaseml/v1/firebaseml-gen.go index 9dc4244d419..711290b6017 100644 --- a/firebaseml/v1/firebaseml-gen.go +++ b/firebaseml/v1/firebaseml-gen.go @@ -183,6 +183,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -561,6 +566,19 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 09b0c415465..02e2de34af2 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250922", + "revision": "20250929", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -707,6 +707,28 @@ "description": "Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.", "id": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch", "properties": { + "blockingConfidence": { + "description": "Optional. Sites with confidence level chosen \u0026 above this value will be blocked from the search results.", + "enum": [ + "PHISH_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_HIGH_AND_ABOVE", + "BLOCK_HIGHER_AND_ABOVE", + "BLOCK_VERY_HIGH_AND_ABOVE", + "BLOCK_ONLY_EXTREMELY_HIGH" + ], + "enumDescriptions": [ + "Defaults to unspecified.", + "Blocks Low and above confidence URL that is risky.", + "Blocks Medium and above confidence URL that is risky.", + "Blocks High and above confidence URL that is risky.", + "Blocks Higher and above confidence URL that is risky.", + "Blocks Very high and above confidence URL that is risky.", + "Blocks Extremely high confidence URL that is risky." + ], + "type": "string" + }, "excludeDomains": { "description": "Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.", "items": { @@ -2465,6 +2487,28 @@ "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", "id": "GoogleCloudAiplatformV1beta1ToolGoogleSearch", "properties": { + "blockingConfidence": { + "description": "Optional. Sites with confidence level chosen \u0026 above this value will be blocked from the search results.", + "enum": [ + "PHISH_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_HIGH_AND_ABOVE", + "BLOCK_HIGHER_AND_ABOVE", + "BLOCK_VERY_HIGH_AND_ABOVE", + "BLOCK_ONLY_EXTREMELY_HIGH" + ], + "enumDescriptions": [ + "Defaults to unspecified.", + "Blocks Low and above confidence URL that is risky.", + "Blocks Medium and above confidence URL that is risky.", + "Blocks High and above confidence URL that is risky.", + "Blocks Higher and above confidence URL that is risky.", + "Blocks Very high and above confidence URL that is risky.", + "Blocks Extremely high confidence URL that is risky." + ], + "type": "string" + }, "excludeDomains": { "description": "Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [\"amazon.com\", \"facebook.com\"].", "items": { diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 8069f8b2337..0cdfbba36b6 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -864,18 +864,35 @@ func (s *GoogleCloudAiplatformV1beta1DynamicRetrievalConfig) UnmarshalJSON(data // GoogleCloudAiplatformV1beta1EnterpriseWebSearch: Tool to search public web // data, powered by Vertex AI Search and Sec4 compliance. type GoogleCloudAiplatformV1beta1EnterpriseWebSearch struct { + // BlockingConfidence: Optional. Sites with confidence level chosen & above + // this value will be blocked from the search results. + // + // Possible values: + // "PHISH_BLOCK_THRESHOLD_UNSPECIFIED" - Defaults to unspecified. + // "BLOCK_LOW_AND_ABOVE" - Blocks Low and above confidence URL that is risky. + // "BLOCK_MEDIUM_AND_ABOVE" - Blocks Medium and above confidence URL that is + // risky. + // "BLOCK_HIGH_AND_ABOVE" - Blocks High and above confidence URL that is + // risky. + // "BLOCK_HIGHER_AND_ABOVE" - Blocks Higher and above confidence URL that is + // risky. + // "BLOCK_VERY_HIGH_AND_ABOVE" - Blocks Very high and above confidence URL + // that is risky. + // "BLOCK_ONLY_EXTREMELY_HIGH" - Blocks Extremely high confidence URL that is + // risky. + BlockingConfidence string `json:"blockingConfidence,omitempty"` // ExcludeDomains: Optional. List of domains to be excluded from the search // results. The default limit is 2000 domains. ExcludeDomains []string `json:"excludeDomains,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludeDomains") to + // ForceSendFields is a list of field names (e.g. "BlockingConfidence") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExcludeDomains") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "BlockingConfidence") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -3007,19 +3024,36 @@ func (s GoogleCloudAiplatformV1beta1ToolConfig) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1ToolGoogleSearch: GoogleSearch tool type. Tool // to support Google Search in Model. Powered by Google. type GoogleCloudAiplatformV1beta1ToolGoogleSearch struct { + // BlockingConfidence: Optional. Sites with confidence level chosen & above + // this value will be blocked from the search results. + // + // Possible values: + // "PHISH_BLOCK_THRESHOLD_UNSPECIFIED" - Defaults to unspecified. + // "BLOCK_LOW_AND_ABOVE" - Blocks Low and above confidence URL that is risky. + // "BLOCK_MEDIUM_AND_ABOVE" - Blocks Medium and above confidence URL that is + // risky. + // "BLOCK_HIGH_AND_ABOVE" - Blocks High and above confidence URL that is + // risky. + // "BLOCK_HIGHER_AND_ABOVE" - Blocks Higher and above confidence URL that is + // risky. + // "BLOCK_VERY_HIGH_AND_ABOVE" - Blocks Very high and above confidence URL + // that is risky. + // "BLOCK_ONLY_EXTREMELY_HIGH" - Blocks Extremely high confidence URL that is + // risky. + BlockingConfidence string `json:"blockingConfidence,omitempty"` // ExcludeDomains: Optional. List of domains to be excluded from the search // results. The default limit is 2000 domains. Example: ["amazon.com", // "facebook.com"]. ExcludeDomains []string `json:"excludeDomains,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludeDomains") to + // ForceSendFields is a list of field names (e.g. "BlockingConfidence") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExcludeDomains") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "BlockingConfidence") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/gkehub/v2beta/gkehub-api.json b/gkehub/v2beta/gkehub-api.json index f8844279d8a..abb13d062b6 100644 --- a/gkehub/v2beta/gkehub-api.json +++ b/gkehub/v2beta/gkehub-api.json @@ -460,6 +460,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v2beta/{+name}/operations", @@ -477,7 +482,7 @@ } } }, - "revision": "20250907", + "revision": "20250925", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -2331,6 +2336,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index 241bc331203..fc6387bb0d2 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -2298,6 +2298,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4767,6 +4772,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 403d2c5c691..98bfa1e740e 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -109,6 +109,34 @@ "resources": { "locations": { "methods": { + "checkConsumerConfig": { + "description": "CheckConsumerConfig validates the consumer network and project for potential PSC connection creation. This method performs several checks, including: - Validating the existence and permissions of the service class. - Ensuring the consumer network exists and is accessible. - Verifying XPN relationships if applicable. - Checking for compatible IP versions between the consumer network and the requested version. This method performs a dynamic IAM check for the `networkconnectivity.serviceClasses.use` permission on the service class resource in the Prepare phase.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:checkConsumerConfig", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.checkConsumerConfig", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The location resource path. Example: - projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:checkConsumerConfig", + "request": { + "$ref": "CheckConsumerConfigRequest" + }, + "response": { + "$ref": "CheckConsumerConfigResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets information about a location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", @@ -2102,6 +2130,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -3763,7 +3796,7 @@ } } }, - "revision": "20250910", + "revision": "20250925", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -3952,6 +3985,77 @@ }, "type": "object" }, + "CheckConsumerConfigRequest": { + "description": "Request for CheckConsumerConfig.", + "id": "CheckConsumerConfigRequest", + "properties": { + "consumerNetwork": { + "description": "Required. Full resource name of the consumer network. Example: - projects/{project}/global/networks/{network}.", + "type": "string" + }, + "endpointProject": { + "description": "The project number or ID where the PSC endpoint is to be created.", + "type": "string" + }, + "requestedIpVersion": { + "description": "The requested IP Version", + "enum": [ + "IP_VERSION_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Default value. We will use IPv4 or IPv6 depending on the IP version of first available subnetwork.", + "Will use IPv4 only.", + "Will use IPv6 only." + ], + "type": "string" + }, + "serviceClass": { + "description": "Required. The service class identifier of the producer.", + "type": "string" + } + }, + "type": "object" + }, + "CheckConsumerConfigResponse": { + "description": "Response for CheckConsumerConfig.", + "id": "CheckConsumerConfigResponse", + "properties": { + "errors": { + "description": "List of validation errors. If the list is empty, the consumer config is valid.", + "items": { + "enum": [ + "ERROR_UNSPECIFIED", + "NETWORK_PROJECT_INVALID", + "NETWORK_PROJECT_APIS_NOT_ENABLED", + "NETWORK_INVALID", + "CONNECTION_POLICY_MISSING", + "IP_VERSION_NOT_SUPPORTED", + "NETWORK_PROJECT_SERVICE_AGENT_NOT_FOUND", + "ENDPOINT_PROJECT_INVALID", + "ENDPOINT_PROJECT_API_NOT_ENABLED", + "ENDPOINT_PROJECT_IS_NOT_SERVICE_PROJECT" + ], + "enumDescriptions": [ + "An invalid error as the default case.", + "Invalid Network project.", + "Network Connectivity APIs not enabled in network project.", + "Invalid network.", + "No ServiceConnectionPolicy found for this network and ServiceClass.", + "IP version not supported in any of the subnetworks.", + "Service Agent missing for network project.", + "Invalid endpoint project.", + "Network Connectivity API is not enabled in the endpoint project.", + "Endpoint project is not a service project of the network project." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ConsumerPscConfig": { "description": "Allow the producer to specify which consumers can connect to it.", "id": "ConsumerPscConfig", @@ -4321,6 +4425,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -6103,7 +6214,7 @@ "type": "string" }, "network": { - "description": "The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`", + "description": "Optional. The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`", "type": "string" }, "pscForwardingRule": { @@ -6112,7 +6223,7 @@ "type": "string" }, "subnetwork": { - "description": "The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`", + "description": "Optional. The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`", "type": "string" }, "targetGoogleApi": { @@ -7246,7 +7357,10 @@ }, "advertisedRoutes": { "description": "Optional. [Preview only] List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.", - "type": "string" + "items": { + "type": "string" + }, + "type": "array" }, "bandwidth": { "description": "Required. Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.", diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 1ae68ede493..120eabf853f 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -782,6 +782,86 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CheckConsumerConfigRequest: Request for CheckConsumerConfig. +type CheckConsumerConfigRequest struct { + // ConsumerNetwork: Required. Full resource name of the consumer network. + // Example: - projects/{project}/global/networks/{network}. + ConsumerNetwork string `json:"consumerNetwork,omitempty"` + // EndpointProject: The project number or ID where the PSC endpoint is to be + // created. + EndpointProject string `json:"endpointProject,omitempty"` + // RequestedIpVersion: The requested IP Version + // + // Possible values: + // "IP_VERSION_UNSPECIFIED" - Default value. We will use IPv4 or IPv6 + // depending on the IP version of first available subnetwork. + // "IPV4" - Will use IPv4 only. + // "IPV6" - Will use IPv6 only. + RequestedIpVersion string `json:"requestedIpVersion,omitempty"` + // ServiceClass: Required. The service class identifier of the producer. + ServiceClass string `json:"serviceClass,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumerNetwork") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CheckConsumerConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod CheckConsumerConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CheckConsumerConfigResponse: Response for CheckConsumerConfig. +type CheckConsumerConfigResponse struct { + // Errors: List of validation errors. If the list is empty, the consumer config + // is valid. + // + // Possible values: + // "ERROR_UNSPECIFIED" - An invalid error as the default case. + // "NETWORK_PROJECT_INVALID" - Invalid Network project. + // "NETWORK_PROJECT_APIS_NOT_ENABLED" - Network Connectivity APIs not enabled + // in network project. + // "NETWORK_INVALID" - Invalid network. + // "CONNECTION_POLICY_MISSING" - No ServiceConnectionPolicy found for this + // network and ServiceClass. + // "IP_VERSION_NOT_SUPPORTED" - IP version not supported in any of the + // subnetworks. + // "NETWORK_PROJECT_SERVICE_AGENT_NOT_FOUND" - Service Agent missing for + // network project. + // "ENDPOINT_PROJECT_INVALID" - Invalid endpoint project. + // "ENDPOINT_PROJECT_API_NOT_ENABLED" - Network Connectivity API is not + // enabled in the endpoint project. + // "ENDPOINT_PROJECT_IS_NOT_SERVICE_PROJECT" - Endpoint project is not a + // service project of the network project. + Errors []string `json:"errors,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CheckConsumerConfigResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckConsumerConfigResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ConsumerPscConfig: Allow the producer to specify which consumers can connect // to it. type ConsumerPscConfig struct { @@ -1149,6 +1229,11 @@ type GoogleLongrunningListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -3265,16 +3350,16 @@ type RegionalEndpoint struct { // `projects/{project}/locations/{location}/regionalEndpoints/^-a-z0-9 // (?:[-a-z0-9]{0,44})[a-z0-9]$`. Name string `json:"name,omitempty"` - // Network: The name of the VPC network for this private regional endpoint. - // Format: `projects/{project}/global/networks/{network}` + // Network: Optional. The name of the VPC network for this private regional + // endpoint. Format: `projects/{project}/global/networks/{network}` Network string `json:"network,omitempty"` // PscForwardingRule: Output only. The resource reference of the PSC Forwarding // Rule created on behalf of the customer. Format: // `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules // /{forwarding_rule_name}` PscForwardingRule string `json:"pscForwardingRule,omitempty"` - // Subnetwork: The name of the subnetwork from which the IP address will be - // allocated. Format: + // Subnetwork: Optional. The name of the subnetwork from which the IP address + // will be allocated. Format: // `projects/{project}/regions/{region}/subnetworks/{subnetwork}` Subnetwork string `json:"subnetwork,omitempty"` // TargetGoogleApi: Required. The service endpoint this private regional @@ -4404,7 +4489,7 @@ type Transport struct { // AdvertisedRoutes: Optional. [Preview only] List of IP Prefixes that will be // advertised to the remote provider. Both IPv4 and IPv6 addresses are // supported. - AdvertisedRoutes string `json:"advertisedRoutes,omitempty"` + AdvertisedRoutes []string `json:"advertisedRoutes,omitempty"` // Bandwidth: Required. Bandwidth of the Transport. This must be one of the // supported bandwidths for the remote profile. // @@ -4565,6 +4650,118 @@ func (s Warnings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type ProjectsLocationsCheckConsumerConfigCall struct { + s *Service + location string + checkconsumerconfigrequest *CheckConsumerConfigRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CheckConsumerConfig: CheckConsumerConfig validates the consumer network and +// project for potential PSC connection creation. This method performs several +// checks, including: - Validating the existence and permissions of the service +// class. - Ensuring the consumer network exists and is accessible. - Verifying +// XPN relationships if applicable. - Checking for compatible IP versions +// between the consumer network and the requested version. This method performs +// a dynamic IAM check for the `networkconnectivity.serviceClasses.use` +// permission on the service class resource in the Prepare phase. +// +// - location: The location resource path. Example: - +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsService) CheckConsumerConfig(location string, checkconsumerconfigrequest *CheckConsumerConfigRequest) *ProjectsLocationsCheckConsumerConfigCall { + c := &ProjectsLocationsCheckConsumerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.checkconsumerconfigrequest = checkconsumerconfigrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCheckConsumerConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsCheckConsumerConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCheckConsumerConfigCall) Context(ctx context.Context) *ProjectsLocationsCheckConsumerConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCheckConsumerConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCheckConsumerConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.checkconsumerconfigrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:checkConsumerConfig") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.checkConsumerConfig", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkconnectivity.projects.locations.checkConsumerConfig" call. +// Any non-2xx status code is an error. Response headers are in either +// *CheckConsumerConfigResponse.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 *ProjectsLocationsCheckConsumerConfigCall) Do(opts ...googleapi.CallOption) (*CheckConsumerConfigResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CheckConsumerConfigResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkconnectivity.projects.locations.checkConsumerConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsGetCall struct { s *Service name string @@ -11699,6 +11896,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 5b070f62167..44871f08f3f 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -294,6 +294,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -950,331 +955,16 @@ "description": "The standard list page token.", "location": "query", "type": "string" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "networkMonitoringProviders": { - "methods": { - "create": { - "description": "Creates a NetworkMonitoringProvider resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders", - "httpMethod": "POST", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "networkMonitoringProviderId": { - "description": "Required. The ID to use for the NetworkMonitoringProvider resource, which will become the final component of the NetworkMonitoringProvider resource's name.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for CreateNetworkMonitoringProviderRequest. Format: projects/{project}/locations/{location}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/networkMonitoringProviders", - "request": { - "$ref": "NetworkMonitoringProvider" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a NetworkMonitoringProvider resource and all of its child resources.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}", - "httpMethod": "DELETE", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the NetworkMonitoringProvider resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "NetworkMonitoringProvider" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists NetworkMonitoringProviders for a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of monitoring points to return. The service may return fewer than this value. If unspecified, at most 20 monitoring points will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListMonitoringPoints` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMonitoringPoints` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListNetworkMonitoringProvidersRequest. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/networkMonitoringProviders", - "response": { - "$ref": "ListNetworkMonitoringProvidersResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "monitoringPoints": { - "methods": { - "get": { - "description": "Gets the MonitoringPoint resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/monitoringPoints/{monitoringPointsId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/monitoringPoints/{monitoring_point}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+/monitoringPoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "MonitoringPoint" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists MonitoringPoints for a given network monitoring provider.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/monitoringPoints", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of monitoring points to return. The service may return fewer than this value. If unspecified, at most 20 monitoring points will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListMonitoringPoints` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMonitoringPoints` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListMonitoringPointsRequest. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/monitoringPoints", - "response": { - "$ref": "ListMonitoringPointsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "networkPaths": { - "methods": { - "get": { - "description": "Gets the NetworkPath resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/networkPaths/{networkPathsId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/networkPaths/{network_path}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+/networkPaths/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "NetworkPath" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists NetworkPaths for a given network monitoring provider.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/networkPaths", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of network paths to return. The service may return fewer than this value. If unspecified, at most 20 network pathswill be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListNetworkPaths` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListNetworkPaths` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListNetworkPathsRequest. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/networkPaths", - "response": { - "$ref": "ListNetworkPathsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "webPaths": { - "methods": { - "get": { - "description": "Gets the WebPath resource.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/webPaths/{webPathsId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the resource.. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/webPaths/{web_path}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+/webPaths/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "WebPath" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists WebPaths for a given network monitoring provider.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/networkMonitoringProviders/{networkMonitoringProvidersId}/webPaths", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of web paths to return. The service may return fewer than this value. If unspecified, at most 20 web paths will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListWebPaths` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWebPaths` must match the call that provided the page token.", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent value for ListWebPathsRequest. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", - "required": true, - "type": "string" + "type": "boolean" } }, - "path": "v1/{+parent}/webPaths", + "path": "v1/{+name}/operations", "response": { - "$ref": "ListWebPathsResponse" + "$ref": "ListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1543,7 +1233,7 @@ } } }, - "revision": "20250905", + "revision": "20250925", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -2920,21 +2610,6 @@ }, "type": "object" }, - "GeoLocation": { - "description": "The geographical location of the MonitoringPoint.", - "id": "GeoLocation", - "properties": { - "country": { - "description": "Country.", - "type": "string" - }, - "formattedAddress": { - "description": "Formatted address.", - "type": "string" - } - }, - "type": "object" - }, "GoogleServiceInfo": { "description": "For display only. Details of a Google Service sending packets to a VPC network. Although the source IP might be a publicly routable address, some Google Services use special routes within Google production infrastructure to reach Compute Engine Instances. https://cloud.google.com/vpc/docs/routes#special_return_paths", "id": "GoogleServiceInfo", @@ -2970,56 +2645,6 @@ }, "type": "object" }, - "Host": { - "description": "Message describing information about the host.", - "id": "Host", - "properties": { - "cloudInstanceId": { - "description": "Output only. The cloud instance id of the host.", - "readOnly": true, - "type": "string" - }, - "cloudProjectId": { - "description": "Output only. The cloud project id of the host.", - "readOnly": true, - "type": "string" - }, - "cloudProvider": { - "description": "Output only. The cloud provider of the host.", - "readOnly": true, - "type": "string" - }, - "cloudRegion": { - "description": "Output only. The cloud region of the host.", - "readOnly": true, - "type": "string" - }, - "cloudVirtualNetworkIds": { - "description": "Output only. The ids of cloud virtual networks of the host.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "cloudVpcId": { - "description": "Output only. The id of Virtual Private Cloud (VPC) of the host.", - "readOnly": true, - "type": "string" - }, - "cloudZone": { - "description": "Output only. The cloud zone of the host.", - "readOnly": true, - "type": "string" - }, - "os": { - "description": "Output only. The operating system of the host.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "HybridSubnetInfo": { "description": "For display only. Metadata associated with a hybrid subnet.", "id": "HybridSubnetInfo", @@ -3228,60 +2853,6 @@ }, "type": "object" }, - "ListMonitoringPointsResponse": { - "description": "Message for response to listing MonitoringPoints", - "id": "ListMonitoringPointsResponse", - "properties": { - "monitoringPoints": { - "description": "The list of MonitoringPoints.", - "items": { - "$ref": "MonitoringPoint" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - } - }, - "type": "object" - }, - "ListNetworkMonitoringProvidersResponse": { - "description": "Message for response to listing NetworkMonitoringProviders", - "id": "ListNetworkMonitoringProvidersResponse", - "properties": { - "networkMonitoringProviders": { - "description": "The list of NetworkMonitoringProvider", - "items": { - "$ref": "NetworkMonitoringProvider" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - } - }, - "type": "object" - }, - "ListNetworkPathsResponse": { - "description": "Message for response to listing NetworkPaths", - "id": "ListNetworkPathsResponse", - "properties": { - "networkPaths": { - "description": "The list of NetworkPath", - "items": { - "$ref": "NetworkPath" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - } - }, - "type": "object" - }, "ListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "ListOperationsResponse", @@ -3296,6 +2867,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -3325,24 +2903,6 @@ }, "type": "object" }, - "ListWebPathsResponse": { - "description": "Message for response to listing WebPaths", - "id": "ListWebPathsResponse", - "properties": { - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" - }, - "webPaths": { - "description": "The list of WebPath.", - "items": { - "$ref": "WebPath" - }, - "type": "array" - } - }, - "type": "object" - }, "LoadBalancerBackend": { "description": "For display only. Metadata associated with a specific load balancer backend.", "id": "LoadBalancerBackend", @@ -3541,146 +3101,6 @@ }, "type": "object" }, - "MonitoringPoint": { - "description": "Message describing MonitoringPoint resource.", - "id": "MonitoringPoint", - "properties": { - "autoGeoLocationEnabled": { - "description": "Output only. Indicates if automaitic geographic location is enabled for the MonitoringPoint.", - "readOnly": true, - "type": "boolean" - }, - "connectionStatus": { - "description": "Output only. Connection status of the MonitoringPoint.", - "enum": [ - "CONNECTION_STATUS_UNSPECIFIED", - "ONLINE", - "OFFLINE" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "MonitoringPoint is online.", - "MonitoringPoint is offline." - ], - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the MonitoringPoint was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "displayName": { - "description": "Output only. Display name of the MonitoringPoint.", - "readOnly": true, - "type": "string" - }, - "errors": { - "description": "Output only. The codes of errors detected in the MonitoringPoint.", - "items": { - "enum": [ - "ERROR_CODE_UNSPECIFIED", - "NTP_ERROR", - "UPGRADE_ERROR", - "DOWNLOAD_FAILED" - ], - "enumDescriptions": [ - "The default value. This value is used if the error code is omitted.", - "Error detected in NTP service.", - "Error detected during the upgrade process.", - "Error detected while downloading." - ], - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "geoLocation": { - "$ref": "GeoLocation", - "description": "Output only. The geographical location of the MonitoringPoint. ;", - "readOnly": true - }, - "host": { - "$ref": "Host", - "description": "Output only. The host information of the MonitoringPoint.", - "readOnly": true - }, - "hostname": { - "description": "Output only. The hostname of the MonitoringPoint.", - "readOnly": true, - "type": "string" - }, - "name": { - "description": "Identifier. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/monitoringPoints/{monitoring_point}`", - "type": "string" - }, - "networkInterfaces": { - "description": "Output only. The network interfaces of the MonitoringPoint.", - "items": { - "$ref": "NetworkInterface" - }, - "readOnly": true, - "type": "array" - }, - "originatingIp": { - "description": "Output only. IP address visible when MonitoringPoint connects to the provider.", - "readOnly": true, - "type": "string" - }, - "providerTags": { - "description": "Output only. The provider tags of the MonitoringPoint.", - "items": { - "$ref": "ProviderTag" - }, - "readOnly": true, - "type": "array" - }, - "type": { - "description": "Output only. Deployment type of the MonitoringPoint.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the MonitoringPoint was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "upgradeAvailable": { - "description": "Output only. Indicates if an upgrade is available for the MonitoringPoint.", - "readOnly": true, - "type": "boolean" - }, - "upgradeType": { - "description": "Output only. The type of upgrade available for the MonitoringPoint.", - "enum": [ - "UPGRADE_TYPE_UNSPECIFIED", - "MANUAL", - "MANAGED", - "SCHEDULED", - "AUTO", - "EXTERNAL" - ], - "enumDescriptions": [ - "The default value. This value is used if the upgrade type is omitted.", - "Upgrades are performed manually.", - "Upgrades are managed.", - "Upgrade is scheduled.", - "Upgrades are performed automatically.", - "Upgrades are performed externally." - ], - "readOnly": true, - "type": "string" - }, - "version": { - "description": "Output only. Version of the software running on the MonitoringPoint.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "NatInfo": { "description": "For display only. Metadata associated with NAT.", "id": "NatInfo", @@ -3787,234 +3207,6 @@ }, "type": "object" }, - "NetworkInterface": { - "description": "Message describing network interfaces.", - "id": "NetworkInterface", - "properties": { - "adapterDescription": { - "description": "Output only. The description of the interface.", - "readOnly": true, - "type": "string" - }, - "cidr": { - "description": "Output only. The IP address of the interface and subnet mask in CIDR format. Examples: 192.168.1.0/24, 2001:db8::/32", - "readOnly": true, - "type": "string" - }, - "interfaceName": { - "description": "Output only. The name of the network interface. Examples: eth0, eno1", - "readOnly": true, - "type": "string" - }, - "ipAddress": { - "description": "Output only. The IP address of the interface.", - "readOnly": true, - "type": "string" - }, - "macAddress": { - "description": "Output only. The MAC address of the interface.", - "readOnly": true, - "type": "string" - }, - "speed": { - "description": "Output only. Speed of the interface in millions of bits per second.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "vlanId": { - "description": "Output only. The id of the VLAN.", - "format": "int64", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "NetworkMonitoringProvider": { - "description": "Message describing NetworkMonitoringProvider resource.", - "id": "NetworkMonitoringProvider", - "properties": { - "createTime": { - "description": "Output only. The time the NetworkMonitoringProvider was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "errors": { - "description": "Output only. The list of error messages detected for the NetworkMonitoringProvider.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "name": { - "description": "Output only. Identifier. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}`", - "readOnly": true, - "type": "string" - }, - "providerType": { - "description": "Required. Type of the NetworkMonitoringProvider.", - "enum": [ - "PROVIDER_TYPE_UNSPECIFIED", - "EXTERNAL" - ], - "enumDescriptions": [ - "The default value. This value is used if the type is omitted.", - "External provider." - ], - "type": "string" - }, - "providerUri": { - "description": "Output only. Link to the provider's UI.", - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. State of the NetworkMonitoringProvider.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVATING", - "ACTIVE", - "SUSPENDING", - "SUSPENDED", - "DELETING", - "DELETED" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "NetworkMonitoringProvider is being activated.", - "NetworkMonitoringProvider is active.", - "NetworkMonitoringProvider is being suspended.", - "NetworkMonitoringProvider is suspended.", - "NetworkMonitoringProvider is being deleted.", - "NetworkMonitoringProvider is deleted." - ], - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the NetworkMonitoringProvider was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "NetworkPath": { - "description": "Message describing NetworkPath resource.", - "id": "NetworkPath", - "properties": { - "createTime": { - "description": "Output only. The time the NetworkPath was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "destination": { - "description": "Output only. IP address or hostname of the network path destination.", - "readOnly": true, - "type": "string" - }, - "destinationGeoLocation": { - "$ref": "GeoLocation", - "description": "Output only. Geographical location of the destination MonitoringPoint. ;", - "readOnly": true - }, - "displayName": { - "description": "Output only. The display name of the network path.", - "readOnly": true, - "type": "string" - }, - "dualEnded": { - "description": "Output only. Indicates if the network path is dual ended. When true, the network path is measured both: from both source to destination, and from destination to source. When false, the network path is measured from the source through the destination back to the source (round trip measurement).", - "readOnly": true, - "type": "boolean" - }, - "monitoringEnabled": { - "description": "Output only. Is monitoring enabled for the network path.", - "readOnly": true, - "type": "boolean" - }, - "monitoringPolicyDisplayName": { - "description": "Output only. Display name of the monitoring policy.", - "readOnly": true, - "type": "string" - }, - "monitoringPolicyId": { - "description": "Output only. ID of monitoring policy.", - "readOnly": true, - "type": "string" - }, - "monitoringStatus": { - "description": "Output only. The monitoring status of the network path.", - "enum": [ - "MONITORING_STATUS_UNSPECIFIED", - "MONITORING", - "POLICY_MISMATCH", - "MONITORING_POINT_OFFLINE", - "DISABLED" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "Monitoring is enabled.", - "Policy is mismatched.", - "Monitoring point is offline.", - "Monitoring is disabled." - ], - "readOnly": true, - "type": "string" - }, - "name": { - "description": "Identifier. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/networkPaths/{network_path}`", - "type": "string" - }, - "networkProtocol": { - "description": "Output only. The network protocol of the network path.", - "enum": [ - "NETWORK_PROTOCOL_UNSPECIFIED", - "ICMP", - "UDP", - "TCP" - ], - "enumDescriptions": [ - "The default value. This value is used if the network protocol is omitted.", - "ICMP.", - "UDP.", - "TCP." - ], - "readOnly": true, - "type": "string" - }, - "providerTags": { - "description": "Output only. The provider tags of the network path.", - "items": { - "$ref": "ProviderTag" - }, - "readOnly": true, - "type": "array" - }, - "providerUiUri": { - "description": "Output only. Link to provider's UI; link shows the NetworkPath.", - "readOnly": true, - "type": "string" - }, - "sourceMonitoringPointId": { - "description": "Output only. Provider's UUID of the source MonitoringPoint. This id may not point to a resource in the GCP.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the NetworkPath was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -4199,42 +3391,6 @@ }, "type": "object" }, - "ProviderTag": { - "description": "Message describing the provider tag.", - "id": "ProviderTag", - "properties": { - "category": { - "description": "Output only. The category of the provider tag.", - "readOnly": true, - "type": "string" - }, - "resourceType": { - "description": "Output only. The resource type of the provider tag.", - "enum": [ - "RESOURCE_TYPE_UNSPECIFIED", - "NETWORK_PATH", - "WEB_PATH", - "MONITORING_POLICY", - "MONITORING_POINT" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "Network path.", - "Web path.", - "Monitoring policy.", - "Monitoring point." - ], - "readOnly": true, - "type": "string" - }, - "value": { - "description": "Output only. The value of the provider tag.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "ProxyConnectionInfo": { "description": "For display only. Metadata associated with ProxyConnection.", "id": "ProxyConnectionInfo", @@ -5325,117 +4481,6 @@ } }, "type": "object" - }, - "WebPath": { - "description": "Message describing WebPath resource.", - "id": "WebPath", - "properties": { - "createTime": { - "description": "Output only. The time the WebPath was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "destination": { - "description": "Output only. Web monitoring target.", - "readOnly": true, - "type": "string" - }, - "displayName": { - "description": "Output only. Display name of the WebPath.", - "readOnly": true, - "type": "string" - }, - "interval": { - "description": "Output only. Monitoring interval.", - "format": "google-duration", - "readOnly": true, - "type": "string" - }, - "monitoringEnabled": { - "description": "Output only. Is monitoring enabled for the WebPath.", - "readOnly": true, - "type": "boolean" - }, - "monitoringPolicyDisplayName": { - "description": "Output only. Display name of the monitoring policy.", - "readOnly": true, - "type": "string" - }, - "monitoringPolicyId": { - "description": "Output only. ID of the monitoring policy.", - "readOnly": true, - "type": "string" - }, - "monitoringStatus": { - "description": "Output only. The monitoring status of the WebPath.", - "enum": [ - "MONITORING_STATUS_UNSPECIFIED", - "MONITORING", - "POLICY_MISMATCH", - "MONITORING_POINT_OFFLINE", - "DISABLED" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "Monitoring is enabled.", - "Policy is mismatched.", - "Monitoring point is offline.", - "Monitoring is disabled." - ], - "readOnly": true, - "type": "string" - }, - "name": { - "description": "Identifier. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}/webPaths/{web_path}`", - "type": "string" - }, - "providerTags": { - "description": "Output only. The provider tags of the web path.", - "items": { - "$ref": "ProviderTag" - }, - "readOnly": true, - "type": "array" - }, - "providerUiUri": { - "description": "Output only. Link to provider's UI; link shows the WebPath.", - "readOnly": true, - "type": "string" - }, - "relatedNetworkPathId": { - "description": "Output only. Provider's UUID of the related NetworkPath.", - "readOnly": true, - "type": "string" - }, - "sourceMonitoringPointId": { - "description": "Output only. ID of the source MonitoringPoint.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the WebPath was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "workflowType": { - "description": "Output only. The workflow type of the WebPath.", - "enum": [ - "WORKFLOW_TYPE_UNSPECIFIED", - "BROWSER", - "HTTP" - ], - "enumDescriptions": [ - "The default value. This value is used if the status is omitted.", - "Browser.", - "HTTP." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 31a56a61f71..677c7f62ed6 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -217,7 +217,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Global = NewProjectsLocationsGlobalService(s) - rs.NetworkMonitoringProviders = NewProjectsLocationsNetworkMonitoringProvidersService(s) rs.VpcFlowLogsConfigs = NewProjectsLocationsVpcFlowLogsConfigsService(s) return rs } @@ -227,8 +226,6 @@ type ProjectsLocationsService struct { Global *ProjectsLocationsGlobalService - NetworkMonitoringProviders *ProjectsLocationsNetworkMonitoringProvidersService - VpcFlowLogsConfigs *ProjectsLocationsVpcFlowLogsConfigsService } @@ -265,51 +262,6 @@ type ProjectsLocationsGlobalOperationsService struct { s *Service } -func NewProjectsLocationsNetworkMonitoringProvidersService(s *Service) *ProjectsLocationsNetworkMonitoringProvidersService { - rs := &ProjectsLocationsNetworkMonitoringProvidersService{s: s} - rs.MonitoringPoints = NewProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService(s) - rs.NetworkPaths = NewProjectsLocationsNetworkMonitoringProvidersNetworkPathsService(s) - rs.WebPaths = NewProjectsLocationsNetworkMonitoringProvidersWebPathsService(s) - return rs -} - -type ProjectsLocationsNetworkMonitoringProvidersService struct { - s *Service - - MonitoringPoints *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService - - NetworkPaths *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService - - WebPaths *ProjectsLocationsNetworkMonitoringProvidersWebPathsService -} - -func NewProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService(s *Service) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService { - rs := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService{s: s} - return rs -} - -type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService struct { - s *Service -} - -func NewProjectsLocationsNetworkMonitoringProvidersNetworkPathsService(s *Service) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService { - rs := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService{s: s} - return rs -} - -type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService struct { - s *Service -} - -func NewProjectsLocationsNetworkMonitoringProvidersWebPathsService(s *Service) *ProjectsLocationsNetworkMonitoringProvidersWebPathsService { - rs := &ProjectsLocationsNetworkMonitoringProvidersWebPathsService{s: s} - return rs -} - -type ProjectsLocationsNetworkMonitoringProvidersWebPathsService struct { - s *Service -} - func NewProjectsLocationsVpcFlowLogsConfigsService(s *Service) *ProjectsLocationsVpcFlowLogsConfigsService { rs := &ProjectsLocationsVpcFlowLogsConfigsService{s: s} return rs @@ -1884,30 +1836,6 @@ func (s GKEMasterInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GeoLocation: The geographical location of the MonitoringPoint. -type GeoLocation struct { - // Country: Country. - Country string `json:"country,omitempty"` - // FormattedAddress: Formatted address. - FormattedAddress string `json:"formattedAddress,omitempty"` - // ForceSendFields is a list of field names (e.g. "Country") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Country") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GeoLocation) MarshalJSON() ([]byte, error) { - type NoMethod GeoLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleServiceInfo: For display only. Details of a Google Service sending // packets to a VPC network. Although the source IP might be a publicly // routable address, some Google Services use special routes within Google @@ -1955,43 +1883,6 @@ func (s GoogleServiceInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Host: Message describing information about the host. -type Host struct { - // CloudInstanceId: Output only. The cloud instance id of the host. - CloudInstanceId string `json:"cloudInstanceId,omitempty"` - // CloudProjectId: Output only. The cloud project id of the host. - CloudProjectId string `json:"cloudProjectId,omitempty"` - // CloudProvider: Output only. The cloud provider of the host. - CloudProvider string `json:"cloudProvider,omitempty"` - // CloudRegion: Output only. The cloud region of the host. - CloudRegion string `json:"cloudRegion,omitempty"` - // CloudVirtualNetworkIds: Output only. The ids of cloud virtual networks of - // the host. - CloudVirtualNetworkIds []string `json:"cloudVirtualNetworkIds,omitempty"` - // CloudVpcId: Output only. The id of Virtual Private Cloud (VPC) of the host. - CloudVpcId string `json:"cloudVpcId,omitempty"` - // CloudZone: Output only. The cloud zone of the host. - CloudZone string `json:"cloudZone,omitempty"` - // Os: Output only. The operating system of the host. - Os string `json:"os,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudInstanceId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudInstanceId") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s Host) MarshalJSON() ([]byte, error) { - type NoMethod Host - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // HybridSubnetInfo: For display only. Metadata associated with a hybrid // subnet. type HybridSubnetInfo struct { @@ -2222,92 +2113,6 @@ func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMonitoringPointsResponse: Message for response to listing -// MonitoringPoints -type ListMonitoringPointsResponse struct { - // MonitoringPoints: The list of MonitoringPoints. - MonitoringPoints []*MonitoringPoint `json:"monitoringPoints,omitempty"` - // NextPageToken: A token identifying a page of results the server should - // return. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "MonitoringPoints") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MonitoringPoints") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListMonitoringPointsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMonitoringPointsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListNetworkMonitoringProvidersResponse: Message for response to listing -// NetworkMonitoringProviders -type ListNetworkMonitoringProvidersResponse struct { - // NetworkMonitoringProviders: The list of NetworkMonitoringProvider - NetworkMonitoringProviders []*NetworkMonitoringProvider `json:"networkMonitoringProviders,omitempty"` - // NextPageToken: A token identifying a page of results the server should - // return. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NetworkMonitoringProviders") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NetworkMonitoringProviders") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListNetworkMonitoringProvidersResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListNetworkMonitoringProvidersResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListNetworkPathsResponse: Message for response to listing NetworkPaths -type ListNetworkPathsResponse struct { - // NetworkPaths: The list of NetworkPath - NetworkPaths []*NetworkPath `json:"networkPaths,omitempty"` - // NextPageToken: A token identifying a page of results the server should - // return. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NetworkPaths") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NetworkPaths") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListNetworkPathsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListNetworkPathsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. @@ -2315,6 +2120,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2367,34 +2177,6 @@ func (s ListVpcFlowLogsConfigsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListWebPathsResponse: Message for response to listing WebPaths -type ListWebPathsResponse struct { - // NextPageToken: A token identifying a page of results the server should - // return. - NextPageToken string `json:"nextPageToken,omitempty"` - // WebPaths: The list of WebPath. - WebPaths []*WebPath `json:"webPaths,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListWebPathsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListWebPathsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // LoadBalancerBackend: For display only. Metadata associated with a specific // load balancer backend. type LoadBalancerBackend struct { @@ -2597,94 +2379,6 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MonitoringPoint: Message describing MonitoringPoint resource. -type MonitoringPoint struct { - // AutoGeoLocationEnabled: Output only. Indicates if automaitic geographic - // location is enabled for the MonitoringPoint. - AutoGeoLocationEnabled bool `json:"autoGeoLocationEnabled,omitempty"` - // ConnectionStatus: Output only. Connection status of the MonitoringPoint. - // - // Possible values: - // "CONNECTION_STATUS_UNSPECIFIED" - The default value. This value is used if - // the status is omitted. - // "ONLINE" - MonitoringPoint is online. - // "OFFLINE" - MonitoringPoint is offline. - ConnectionStatus string `json:"connectionStatus,omitempty"` - // CreateTime: Output only. The time the MonitoringPoint was created. - CreateTime string `json:"createTime,omitempty"` - // DisplayName: Output only. Display name of the MonitoringPoint. - DisplayName string `json:"displayName,omitempty"` - // Errors: Output only. The codes of errors detected in the MonitoringPoint. - // - // Possible values: - // "ERROR_CODE_UNSPECIFIED" - The default value. This value is used if the - // error code is omitted. - // "NTP_ERROR" - Error detected in NTP service. - // "UPGRADE_ERROR" - Error detected during the upgrade process. - // "DOWNLOAD_FAILED" - Error detected while downloading. - Errors []string `json:"errors,omitempty"` - // GeoLocation: Output only. The geographical location of the MonitoringPoint. - // ; - GeoLocation *GeoLocation `json:"geoLocation,omitempty"` - // Host: Output only. The host information of the MonitoringPoint. - Host *Host `json:"host,omitempty"` - // Hostname: Output only. The hostname of the MonitoringPoint. - Hostname string `json:"hostname,omitempty"` - // Name: Identifier. Name of the resource. Format: - // `projects/{project}/locations/{location}/networkMonitoringProviders/{network_ - // monitoring_provider}/monitoringPoints/{monitoring_point}` - Name string `json:"name,omitempty"` - // NetworkInterfaces: Output only. The network interfaces of the - // MonitoringPoint. - NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` - // OriginatingIp: Output only. IP address visible when MonitoringPoint connects - // to the provider. - OriginatingIp string `json:"originatingIp,omitempty"` - // ProviderTags: Output only. The provider tags of the MonitoringPoint. - ProviderTags []*ProviderTag `json:"providerTags,omitempty"` - // Type: Output only. Deployment type of the MonitoringPoint. - Type string `json:"type,omitempty"` - // UpdateTime: Output only. The time the MonitoringPoint was updated. - UpdateTime string `json:"updateTime,omitempty"` - // UpgradeAvailable: Output only. Indicates if an upgrade is available for the - // MonitoringPoint. - UpgradeAvailable bool `json:"upgradeAvailable,omitempty"` - // UpgradeType: Output only. The type of upgrade available for the - // MonitoringPoint. - // - // Possible values: - // "UPGRADE_TYPE_UNSPECIFIED" - The default value. This value is used if the - // upgrade type is omitted. - // "MANUAL" - Upgrades are performed manually. - // "MANAGED" - Upgrades are managed. - // "SCHEDULED" - Upgrade is scheduled. - // "AUTO" - Upgrades are performed automatically. - // "EXTERNAL" - Upgrades are performed externally. - UpgradeType string `json:"upgradeType,omitempty"` - // Version: Output only. Version of the software running on the - // MonitoringPoint. - Version string `json:"version,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AutoGeoLocationEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoGeoLocationEnabled") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s MonitoringPoint) MarshalJSON() ([]byte, error) { - type NoMethod MonitoringPoint - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // NatInfo: For display only. Metadata associated with NAT. type NatInfo struct { // NatGatewayName: The name of Cloud NAT Gateway. Only valid when type is @@ -2779,177 +2473,6 @@ func (s NetworkInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NetworkInterface: Message describing network interfaces. -type NetworkInterface struct { - // AdapterDescription: Output only. The description of the interface. - AdapterDescription string `json:"adapterDescription,omitempty"` - // Cidr: Output only. The IP address of the interface and subnet mask in CIDR - // format. Examples: 192.168.1.0/24, 2001:db8::/32 - Cidr string `json:"cidr,omitempty"` - // InterfaceName: Output only. The name of the network interface. Examples: - // eth0, eno1 - InterfaceName string `json:"interfaceName,omitempty"` - // IpAddress: Output only. The IP address of the interface. - IpAddress string `json:"ipAddress,omitempty"` - // MacAddress: Output only. The MAC address of the interface. - MacAddress string `json:"macAddress,omitempty"` - // Speed: Output only. Speed of the interface in millions of bits per second. - Speed int64 `json:"speed,omitempty,string"` - // VlanId: Output only. The id of the VLAN. - VlanId int64 `json:"vlanId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AdapterDescription") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdapterDescription") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s NetworkInterface) MarshalJSON() ([]byte, error) { - type NoMethod NetworkInterface - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// NetworkMonitoringProvider: Message describing NetworkMonitoringProvider -// resource. -type NetworkMonitoringProvider struct { - // CreateTime: Output only. The time the NetworkMonitoringProvider was created. - CreateTime string `json:"createTime,omitempty"` - // Errors: Output only. The list of error messages detected for the - // NetworkMonitoringProvider. - Errors []string `json:"errors,omitempty"` - // Name: Output only. Identifier. Name of the resource. Format: - // `projects/{project}/locations/{location}/networkMonitoringProviders/{network_ - // monitoring_provider}` - Name string `json:"name,omitempty"` - // ProviderType: Required. Type of the NetworkMonitoringProvider. - // - // Possible values: - // "PROVIDER_TYPE_UNSPECIFIED" - The default value. This value is used if the - // type is omitted. - // "EXTERNAL" - External provider. - ProviderType string `json:"providerType,omitempty"` - // ProviderUri: Output only. Link to the provider's UI. - ProviderUri string `json:"providerUri,omitempty"` - // State: Output only. State of the NetworkMonitoringProvider. - // - // Possible values: - // "STATE_UNSPECIFIED" - The default value. This value is used if the status - // is omitted. - // "ACTIVATING" - NetworkMonitoringProvider is being activated. - // "ACTIVE" - NetworkMonitoringProvider is active. - // "SUSPENDING" - NetworkMonitoringProvider is being suspended. - // "SUSPENDED" - NetworkMonitoringProvider is suspended. - // "DELETING" - NetworkMonitoringProvider is being deleted. - // "DELETED" - NetworkMonitoringProvider is deleted. - State string `json:"state,omitempty"` - // UpdateTime: Output only. The time the NetworkMonitoringProvider was updated. - UpdateTime string `json:"updateTime,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s NetworkMonitoringProvider) MarshalJSON() ([]byte, error) { - type NoMethod NetworkMonitoringProvider - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// NetworkPath: Message describing NetworkPath resource. -type NetworkPath struct { - // CreateTime: Output only. The time the NetworkPath was created. - CreateTime string `json:"createTime,omitempty"` - // Destination: Output only. IP address or hostname of the network path - // destination. - Destination string `json:"destination,omitempty"` - // DestinationGeoLocation: Output only. Geographical location of the - // destination MonitoringPoint. ; - DestinationGeoLocation *GeoLocation `json:"destinationGeoLocation,omitempty"` - // DisplayName: Output only. The display name of the network path. - DisplayName string `json:"displayName,omitempty"` - // DualEnded: Output only. Indicates if the network path is dual ended. When - // true, the network path is measured both: from both source to destination, - // and from destination to source. When false, the network path is measured - // from the source through the destination back to the source (round trip - // measurement). - DualEnded bool `json:"dualEnded,omitempty"` - // MonitoringEnabled: Output only. Is monitoring enabled for the network path. - MonitoringEnabled bool `json:"monitoringEnabled,omitempty"` - // MonitoringPolicyDisplayName: Output only. Display name of the monitoring - // policy. - MonitoringPolicyDisplayName string `json:"monitoringPolicyDisplayName,omitempty"` - // MonitoringPolicyId: Output only. ID of monitoring policy. - MonitoringPolicyId string `json:"monitoringPolicyId,omitempty"` - // MonitoringStatus: Output only. The monitoring status of the network path. - // - // Possible values: - // "MONITORING_STATUS_UNSPECIFIED" - The default value. This value is used if - // the status is omitted. - // "MONITORING" - Monitoring is enabled. - // "POLICY_MISMATCH" - Policy is mismatched. - // "MONITORING_POINT_OFFLINE" - Monitoring point is offline. - // "DISABLED" - Monitoring is disabled. - MonitoringStatus string `json:"monitoringStatus,omitempty"` - // Name: Identifier. Name of the resource. Format: - // `projects/{project}/locations/{location}/networkMonitoringProviders/{network_ - // monitoring_provider}/networkPaths/{network_path}` - Name string `json:"name,omitempty"` - // NetworkProtocol: Output only. The network protocol of the network path. - // - // Possible values: - // "NETWORK_PROTOCOL_UNSPECIFIED" - The default value. This value is used if - // the network protocol is omitted. - // "ICMP" - ICMP. - // "UDP" - UDP. - // "TCP" - TCP. - NetworkProtocol string `json:"networkProtocol,omitempty"` - // ProviderTags: Output only. The provider tags of the network path. - ProviderTags []*ProviderTag `json:"providerTags,omitempty"` - // ProviderUiUri: Output only. Link to provider's UI; link shows the - // NetworkPath. - ProviderUiUri string `json:"providerUiUri,omitempty"` - // SourceMonitoringPointId: Output only. Provider's UUID of the source - // MonitoringPoint. This id may not point to a resource in the GCP. - SourceMonitoringPointId string `json:"sourceMonitoringPointId,omitempty"` - // UpdateTime: Output only. The time the NetworkPath was updated. - UpdateTime string `json:"updateTime,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s NetworkPath) MarshalJSON() ([]byte, error) { - type NoMethod NetworkPath - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Operation: This resource represents a long-running operation that is the // result of a network API call. type Operation struct { @@ -3191,40 +2714,6 @@ func (s ProbingDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProviderTag: Message describing the provider tag. -type ProviderTag struct { - // Category: Output only. The category of the provider tag. - Category string `json:"category,omitempty"` - // ResourceType: Output only. The resource type of the provider tag. - // - // Possible values: - // "RESOURCE_TYPE_UNSPECIFIED" - The default value. This value is used if the - // status is omitted. - // "NETWORK_PATH" - Network path. - // "WEB_PATH" - Web path. - // "MONITORING_POLICY" - Monitoring policy. - // "MONITORING_POINT" - Monitoring point. - ResourceType string `json:"resourceType,omitempty"` - // Value: Output only. The value of the provider tag. - Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Category") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ProviderTag) MarshalJSON() ([]byte, error) { - type NoMethod ProviderTag - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ProxyConnectionInfo: For display only. Metadata associated with // ProxyConnection. type ProxyConnectionInfo struct { @@ -4306,77 +3795,6 @@ func (s VpnTunnelInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WebPath: Message describing WebPath resource. -type WebPath struct { - // CreateTime: Output only. The time the WebPath was created. - CreateTime string `json:"createTime,omitempty"` - // Destination: Output only. Web monitoring target. - Destination string `json:"destination,omitempty"` - // DisplayName: Output only. Display name of the WebPath. - DisplayName string `json:"displayName,omitempty"` - // Interval: Output only. Monitoring interval. - Interval string `json:"interval,omitempty"` - // MonitoringEnabled: Output only. Is monitoring enabled for the WebPath. - MonitoringEnabled bool `json:"monitoringEnabled,omitempty"` - // MonitoringPolicyDisplayName: Output only. Display name of the monitoring - // policy. - MonitoringPolicyDisplayName string `json:"monitoringPolicyDisplayName,omitempty"` - // MonitoringPolicyId: Output only. ID of the monitoring policy. - MonitoringPolicyId string `json:"monitoringPolicyId,omitempty"` - // MonitoringStatus: Output only. The monitoring status of the WebPath. - // - // Possible values: - // "MONITORING_STATUS_UNSPECIFIED" - The default value. This value is used if - // the status is omitted. - // "MONITORING" - Monitoring is enabled. - // "POLICY_MISMATCH" - Policy is mismatched. - // "MONITORING_POINT_OFFLINE" - Monitoring point is offline. - // "DISABLED" - Monitoring is disabled. - MonitoringStatus string `json:"monitoringStatus,omitempty"` - // Name: Identifier. Name of the resource. Format: - // `projects/{project}/locations/{location}/networkMonitoringProviders/{network_ - // monitoring_provider}/webPaths/{web_path}` - Name string `json:"name,omitempty"` - // ProviderTags: Output only. The provider tags of the web path. - ProviderTags []*ProviderTag `json:"providerTags,omitempty"` - // ProviderUiUri: Output only. Link to provider's UI; link shows the WebPath. - ProviderUiUri string `json:"providerUiUri,omitempty"` - // RelatedNetworkPathId: Output only. Provider's UUID of the related - // NetworkPath. - RelatedNetworkPathId string `json:"relatedNetworkPathId,omitempty"` - // SourceMonitoringPointId: Output only. ID of the source MonitoringPoint. - SourceMonitoringPointId string `json:"sourceMonitoringPointId,omitempty"` - // UpdateTime: Output only. The time the WebPath was updated. - UpdateTime string `json:"updateTime,omitempty"` - // WorkflowType: Output only. The workflow type of the WebPath. - // - // Possible values: - // "WORKFLOW_TYPE_UNSPECIFIED" - The default value. This value is used if the - // status is omitted. - // "BROWSER" - Browser. - // "HTTP" - HTTP. - WorkflowType string `json:"workflowType,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s WebPath) MarshalJSON() ([]byte, error) { - type NoMethod WebPath - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - type OrganizationsLocationsGetCall struct { s *Service name string @@ -5010,6 +4428,19 @@ func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) * return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OrganizationsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -7462,6 +6893,19 @@ func (c *ProjectsLocationsGlobalOperationsListCall) PageToken(pageToken string) return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsGlobalOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsGlobalOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -7575,1268 +7019,6 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Pages(ctx context.Context, f } } -type ProjectsLocationsNetworkMonitoringProvidersCreateCall struct { - s *Service - parent string - networkmonitoringprovider *NetworkMonitoringProvider - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a NetworkMonitoringProvider resource. -// -// - parent: Parent value for CreateNetworkMonitoringProviderRequest. Format: -// projects/{project}/locations/{location}. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Create(parent string, networkmonitoringprovider *NetworkMonitoringProvider) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c := &ProjectsLocationsNetworkMonitoringProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.networkmonitoringprovider = networkmonitoringprovider - return c -} - -// NetworkMonitoringProviderId sets the optional parameter -// "networkMonitoringProviderId": Required. The ID to use for the -// NetworkMonitoringProvider resource, which will become the final component of -// the NetworkMonitoringProvider resource's name. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) NetworkMonitoringProviderId(networkMonitoringProviderId string) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c.urlParams_.Set("networkMonitoringProviderId", networkMonitoringProviderId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.networkmonitoringprovider) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a NetworkMonitoringProvider resource and all of its child -// resources. -// -// - name: Name of the resource. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Delete(name string) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { - c := &ProjectsLocationsNetworkMonitoringProvidersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the NetworkMonitoringProvider resource. -// -// - name: Name of the resource. Format: -// `projects/{project}/locations/{location}/networkMonitoringProviders/{networ -// k_monitoring_provider}`. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *NetworkMonitoringProvider.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 *ProjectsLocationsNetworkMonitoringProvidersGetCall) Do(opts ...googleapi.CallOption) (*NetworkMonitoringProvider, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &NetworkMonitoringProvider{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists NetworkMonitoringProviders for a given project and location. -// -// - parent: Parent value for ListNetworkMonitoringProvidersRequest. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// monitoring points to return. The service may return fewer than this value. -// If unspecified, at most 20 monitoring points will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMonitoringPoints` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMonitoringPoints` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersListCall { - 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 -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListNetworkMonitoringProvidersResponse.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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Do(opts ...googleapi.CallOption) (*ListNetworkMonitoringProvidersResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListNetworkMonitoringProvidersResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// 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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Pages(ctx context.Context, f func(*ListNetworkMonitoringProvidersResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the MonitoringPoint resource. -// -// - name: Name of the resource. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/monitoringPoints/{monitoring_point}. -func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *MonitoringPoint.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Do(opts ...googleapi.CallOption) (*MonitoringPoint, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &MonitoringPoint{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists MonitoringPoints for a given network monitoring provider. -// -// - parent: Parent value for ListMonitoringPointsRequest. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// monitoring points to return. The service may return fewer than this value. -// If unspecified, at most 20 monitoring points will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMonitoringPoints` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMonitoringPoints` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - 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 -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/monitoringPoints") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListMonitoringPointsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoringPointsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListMonitoringPointsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// 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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Pages(ctx context.Context, f func(*ListMonitoringPointsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the NetworkPath resource. -// -// - name: Name of the resource. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/networkPaths/{network_path}. -func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *NetworkPath.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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Do(opts ...googleapi.CallOption) (*NetworkPath, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &NetworkPath{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists NetworkPaths for a given network monitoring provider. -// -// - parent: Parent value for ListNetworkPathsRequest. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// network paths to return. The service may return fewer than this value. If -// unspecified, at most 20 network pathswill be returned. The maximum value is -// 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListNetworkPaths` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListNetworkPaths` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - 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 -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkPaths") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListNetworkPathsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Do(opts ...googleapi.CallOption) (*ListNetworkPathsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListNetworkPathsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// 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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Pages(ctx context.Context, f func(*ListNetworkPathsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the WebPath resource. -// -// - name: Name of the resource.. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/webPaths/{web_path}. -func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *WebPath.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Do(opts ...googleapi.CallOption) (*WebPath, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &WebPath{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists WebPaths for a given network monitoring provider. -// -// - parent: Parent value for ListWebPathsRequest. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of web -// paths to return. The service may return fewer than this value. If -// unspecified, at most 20 web paths will be returned. The maximum value is -// 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListWebPaths` call. Provide this to retrieve the subsequent -// page. When paginating, all other parameters provided to `ListWebPaths` must -// match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - 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 -// details. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/webPaths") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListWebPathsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Do(opts ...googleapi.CallOption) (*ListWebPathsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &ListWebPathsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// 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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Pages(ctx context.Context, f func(*ListWebPathsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - type ProjectsLocationsVpcFlowLogsConfigsCreateCall struct { s *Service parent string diff --git a/observability/v1/observability-api.json b/observability/v1/observability-api.json index 8f8e94baf90..e48f977c0d0 100644 --- a/observability/v1/observability-api.json +++ b/observability/v1/observability-api.json @@ -294,6 +294,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -531,7 +536,7 @@ } } }, - "revision": "20250904", + "revision": "20250925", "rootUrl": "https://observability.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -578,6 +583,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/observability/v1/observability-gen.go b/observability/v1/observability-gen.go index d0994533d84..fde639b055f 100644 --- a/observability/v1/observability-gen.go +++ b/observability/v1/observability-gen.go @@ -259,6 +259,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1176,6 +1181,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index 1f68687e15e..b8e5dceee09 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -217,6 +217,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -339,7 +344,7 @@ } } }, - "revision": "20250815", + "revision": "20250929", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -1748,6 +1753,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index 1feb39c0073..7ccdb0c0ec6 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -1944,6 +1944,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -4003,6 +4008,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index 6f5e081a0d5..96e5d7d0c7c 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -217,6 +217,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/{+name}/operations", @@ -339,7 +344,7 @@ } } }, - "revision": "20250815", + "revision": "20250929", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -1743,6 +1748,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index 6866578b7a6..1b2047082f3 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -1940,6 +1940,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -3999,6 +4004,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 6586f8f16e0..06a75873c15 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -523,7 +523,7 @@ } } }, - "revision": "20250814", + "revision": "20250929", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "Amount": { @@ -563,6 +563,7 @@ "CANCELLATION_REASON_USER_DELINQUENCY", "CANCELLATION_REASON_SYSTEM_ERROR", "CANCELLATION_REASON_SYSTEM_CANCEL", + "CANCELLATION_REASON_BILLING_SYSTEM_SWITCH", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -576,6 +577,7 @@ "Cancellation due to user delinquency", "Used for notification only, do not use in Cancel API. Cancellation due to an unrecoverable system error.", "Used for notification only, do not use in Cancel API. The subscription is cancelled by Google automatically since it is no longer valid.", + "Cancellation due to a billing system switch.", "Other reason." ], "type": "string" @@ -1423,6 +1425,7 @@ "CANCELLATION_REASON_USER_DELINQUENCY", "CANCELLATION_REASON_SYSTEM_ERROR", "CANCELLATION_REASON_SYSTEM_CANCEL", + "CANCELLATION_REASON_BILLING_SYSTEM_SWITCH", "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ @@ -1436,6 +1439,7 @@ "Cancellation due to user delinquency", "Used for notification only, do not use in Cancel API. Cancellation due to an unrecoverable system error.", "Used for notification only, do not use in Cancel API. The subscription is cancelled by Google automatically since it is no longer valid.", + "Cancellation due to a billing system switch.", "Other reason." ], "readOnly": true, diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index ed9d6f0aa3f..e86c1291cd2 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -265,6 +265,8 @@ type CancelSubscriptionRequest struct { // "CANCELLATION_REASON_SYSTEM_CANCEL" - Used for notification only, do not // use in Cancel API. The subscription is cancelled by Google automatically // since it is no longer valid. + // "CANCELLATION_REASON_BILLING_SYSTEM_SWITCH" - Cancellation due to a + // billing system switch. // "CANCELLATION_REASON_OTHER" - Other reason. CancellationReason string `json:"cancellationReason,omitempty"` // ForceSendFields is a list of field names (e.g. "CancelImmediately") to @@ -1413,6 +1415,8 @@ type SubscriptionCancellationDetails struct { // "CANCELLATION_REASON_SYSTEM_CANCEL" - Used for notification only, do not // use in Cancel API. The subscription is cancelled by Google automatically // since it is no longer valid. + // "CANCELLATION_REASON_BILLING_SYSTEM_SWITCH" - Cancellation due to a + // billing system switch. // "CANCELLATION_REASON_OTHER" - Other reason. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index ab2f5dd88fe..7dbfe76305c 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -61,6 +61,11 @@ "endpointUrl": "https://secretmanager.australia-southeast2.rep.googleapis.com/", "location": "australia-southeast2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.europe-north2.rep.googleapis.com/", @@ -131,6 +136,11 @@ "endpointUrl": "https://secretmanager.southamerica-east1.rep.googleapis.com/", "location": "southamerica-east1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", @@ -1296,7 +1306,7 @@ } } }, - "revision": "20250910", + "revision": "20250926", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta1/secretmanager-api.json b/secretmanager/v1beta1/secretmanager-api.json index d9e49b4820e..24896ae2355 100644 --- a/secretmanager/v1beta1/secretmanager-api.json +++ b/secretmanager/v1beta1/secretmanager-api.json @@ -61,6 +61,11 @@ "endpointUrl": "https://secretmanager.australia-southeast2.rep.googleapis.com/", "location": "australia-southeast2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.europe-north2.rep.googleapis.com/", @@ -131,6 +136,11 @@ "endpointUrl": "https://secretmanager.southamerica-east1.rep.googleapis.com/", "location": "southamerica-east1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", @@ -816,7 +826,7 @@ } } }, - "revision": "20250910", + "revision": "20250926", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta2/secretmanager-api.json b/secretmanager/v1beta2/secretmanager-api.json index 3ca52a0585d..8cb02b75044 100644 --- a/secretmanager/v1beta2/secretmanager-api.json +++ b/secretmanager/v1beta2/secretmanager-api.json @@ -61,6 +61,11 @@ "endpointUrl": "https://secretmanager.australia-southeast2.rep.googleapis.com/", "location": "australia-southeast2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.europe-north2.rep.googleapis.com/", @@ -131,6 +136,11 @@ "endpointUrl": "https://secretmanager.southamerica-east1.rep.googleapis.com/", "location": "southamerica-east1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", @@ -1296,7 +1306,7 @@ } } }, - "revision": "20250910", + "revision": "20250926", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/speech/v1p1beta1/speech-api.json b/speech/v1p1beta1/speech-api.json index b099e84eee6..30f588a04ad 100644 --- a/speech/v1p1beta1/speech-api.json +++ b/speech/v1p1beta1/speech-api.json @@ -196,6 +196,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1p1beta1/operations", @@ -561,7 +566,7 @@ } } }, - "revision": "20241111", + "revision": "20250925", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ABNFGrammar": { @@ -762,6 +767,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index 89dd1e792f4..0ff797de9f7 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -473,6 +473,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1782,6 +1787,19 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/storagebatchoperations/v1/storagebatchoperations-api.json b/storagebatchoperations/v1/storagebatchoperations-api.json index 053524e29d6..16f4ccadf11 100644 --- a/storagebatchoperations/v1/storagebatchoperations-api.json +++ b/storagebatchoperations/v1/storagebatchoperations-api.json @@ -465,6 +465,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -482,7 +487,7 @@ } } }, - "revision": "20250910", + "revision": "20250924", "rootUrl": "https://storagebatchoperations.googleapis.com/", "schemas": { "Bucket": { @@ -810,6 +815,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/storagebatchoperations/v1/storagebatchoperations-gen.go b/storagebatchoperations/v1/storagebatchoperations-gen.go index acd10734763..41311305e08 100644 --- a/storagebatchoperations/v1/storagebatchoperations-gen.go +++ b/storagebatchoperations/v1/storagebatchoperations-gen.go @@ -614,6 +614,11 @@ type ListOperationsResponse struct { // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` + // Unreachable: Unordered list. Unreachable resources. Populated when the + // request sets `ListOperationsRequest.return_partial_success` and reads across + // collections e.g. when attempting to list all resources across all supported + // locations. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2249,6 +2254,19 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *Proje return c } +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// [ListOperationsResponse.unreachable] field. This can only be `true` when +// reading across collections e.g. when `parent` is set to +// "projects/example/locations/-". This field is not by default supported and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 5bd1199f9ae..33032d02fb0 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -373,6 +373,45 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "patch": { + "description": "Updates the parameters of a single Evaluation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", + "httpMethod": "PATCH", + "id": "workloadmanager.projects.locations.evaluations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the Evaluation resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Evaluation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -879,7 +918,7 @@ } } }, - "revision": "20250910", + "revision": "20250922", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -1769,6 +1808,43 @@ }, "type": "object" }, + "InvalidRule": { + "description": "Message represent an rule that failed to be validated.", + "id": "InvalidRule", + "properties": { + "displayName": { + "description": "display name of the invalid rule", + "type": "string" + }, + "gcsUri": { + "description": "cloud storage destination of the invalid rule", + "type": "string" + }, + "name": { + "description": "name of the invalid rule", + "type": "string" + }, + "valiadtionError": { + "description": "The error message of valdating rule formats.", + "type": "string" + } + }, + "type": "object" + }, + "InvalidRulesWrapper": { + "description": "Message wrappes a list of invalid rules.", + "id": "InvalidRulesWrapper", + "properties": { + "invalidRules": { + "description": "The invalid rules that failed to be validated.", + "items": { + "$ref": "InvalidRule" + }, + "type": "array" + } + }, + "type": "object" + }, "ListDiscoveredProfilesResponse": { "description": "List discovered profile Response returns discovered profiles from agents", "id": "ListDiscoveredProfilesResponse", @@ -1904,9 +1980,9 @@ "description": "Mesesage of response of list rules", "id": "ListRulesResponse", "properties": { - "nextPageToken": { - "description": "A token identifying a page of results the server should return.", - "type": "string" + "invalidRulesWrapper": { + "$ref": "InvalidRulesWrapper", + "description": "A wrapper of the invalid rules that failed to be validated." }, "rules": { "description": "all rules in response", diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index c07659c6ef6..cbab0ddde94 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -1071,6 +1071,56 @@ func (s InstanceProperties) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InvalidRule: Message represent an rule that failed to be validated. +type InvalidRule struct { + // DisplayName: display name of the invalid rule + DisplayName string `json:"displayName,omitempty"` + // GcsUri: cloud storage destination of the invalid rule + GcsUri string `json:"gcsUri,omitempty"` + // Name: name of the invalid rule + Name string `json:"name,omitempty"` + // ValiadtionError: The error message of valdating rule formats. + ValiadtionError string `json:"valiadtionError,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InvalidRule) MarshalJSON() ([]byte, error) { + type NoMethod InvalidRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// InvalidRulesWrapper: Message wrappes a list of invalid rules. +type InvalidRulesWrapper struct { + // InvalidRules: The invalid rules that failed to be validated. + InvalidRules []*InvalidRule `json:"invalidRules,omitempty"` + // ForceSendFields is a list of field names (e.g. "InvalidRules") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InvalidRules") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InvalidRulesWrapper) MarshalJSON() ([]byte, error) { + type NoMethod InvalidRulesWrapper + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListDiscoveredProfilesResponse: List discovered profile Response returns // discovered profiles from agents type ListDiscoveredProfilesResponse struct { @@ -1248,23 +1298,23 @@ func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { // ListRulesResponse: Mesesage of response of list rules type ListRulesResponse struct { - // NextPageToken: A token identifying a page of results the server should - // return. - NextPageToken string `json:"nextPageToken,omitempty"` + // InvalidRulesWrapper: A wrapper of the invalid rules that failed to be + // validated. + InvalidRulesWrapper *InvalidRulesWrapper `json:"invalidRulesWrapper,omitempty"` // Rules: all rules in response Rules []*Rule `json:"rules,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 + // ForceSendFields is a list of field names (e.g. "InvalidRulesWrapper") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "InvalidRulesWrapper") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -3771,6 +3821,136 @@ func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func } } +type ProjectsLocationsEvaluationsPatchCall struct { + s *Service + name string + evaluation *Evaluation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single Evaluation. +// +// - name: name of resource names have the form +// 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'. +func (r *ProjectsLocationsEvaluationsService) Patch(name string, evaluation *Evaluation) *ProjectsLocationsEvaluationsPatchCall { + c := &ProjectsLocationsEvaluationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.evaluation = evaluation + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsEvaluationsPatchCall) RequestId(requestId string) *ProjectsLocationsEvaluationsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the Evaluation resource by +// the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. +func (c *ProjectsLocationsEvaluationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEvaluationsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationsPatchCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.evaluation) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "workloadmanager.projects.locations.evaluations.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.evaluations.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsEvaluationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "workloadmanager.projects.locations.evaluations.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsEvaluationsExecutionsDeleteCall struct { s *Service name string @@ -5425,24 +5605,3 @@ func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*List c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "workloadmanager.projects.locations.rules.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } - -// 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 *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -}